Bug 18776 – Internal error: dmd/backend/symbol.c 1043

Status
RESOLVED
Resolution
WORKSFORME
Severity
critical
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2018-04-18T14:37:59Z
Last change time
2020-03-21T03:56:41Z
Keywords
ice
Assigned to
No Owner
Creator
hsteoh

Comments

Comment #0 by hsteoh — 2018-04-18T14:37:59Z
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 by b2.temp — 2019-11-22T20:53:31Z
since 2.082.1