Bug 7217 – Regression(head 7c839960): [CTFE] ICE on accesing struct array field
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2012-01-04T00:22:00Z
Last change time
2015-06-09T05:12:02Z
Keywords
ice-on-valid-code
Assigned to
nobody
Creator
verylonglogin.reg
Comments
Comment #0 by verylonglogin.reg — 2012-01-04T00:22:00Z
It compiles with dmd 2.057. But with head commit (7c839960):
Assertion failure: '((StructLiteralExp *)newval)->ownedByCtfe' on line 6281 in file 'interpret.c'
---
struct S { int[] arr; }
int f() {
auto s = S();
auto t = s.arr;
return 0;
}
enum e = f();
---