[Issue 18776] New: Internal error: dmd/backend/symbol.c 1043
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Apr 18 14:37:59 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18776
Issue ID: 18776
Summary: Internal error: dmd/backend/symbol.c 1043
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: critical
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: hsteoh at quickfur.ath.cx
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
-------
--
More information about the Digitalmars-d-bugs
mailing list