D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 18776 - Internal error: dmd/backend/symbol.c 1043
Summary: Internal error: dmd/backend/symbol.c 1043
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Linux
: P1 critical
Assignee: No Owner
URL:
Keywords: ice
Depends on:
Blocks:
 
Reported: 2018-04-18 14:37 UTC by hsteoh
Modified: 2020-03-21 03:56 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description hsteoh 2018-04-18 14:37:59 UTC
Reduced code:

-------
struct V
{
    V opSlice(size_t i, size_t j) { return V.init; }
    @property size_t opDollar() { return 1; }
}
struct R
{
    V opIndex(size_t) { return V.init; }
}
struct C
{
    R x() { return R.init; }
}
void main()
{
    C c;
    auto v = c.x[0][0 .. $];
}
-------

Compiler output:

-------
Internal error: dmd/backend/symbol.c 1043
-------
Comment 1 basile-z 2019-11-22 20:53:31 UTC
since 2.082.1