Bug 10944 – [ICE](interpret.c line 310) with arith operation on missing variable
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2013-09-01T16:25:00Z
Last change time
2013-09-11T13:22:55Z
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0 by bearophile_hugs — 2013-09-01T16:25:54Z
I don't know if this is a regression:
struct Foo {
enum uint x = y - 1;
}
void main() {}
DMD 2.064alpha gives:
test.d(2): Error: undefined identifier y, did you mean variable x?
Assertion failure: '0' on line 310 in file 'interpret.c'