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'
Comment #1 by henning — 2013-09-04T06:18:48Z
Comment #2 by bearophile_hugs — 2013-09-11T13:22:55Z
(In reply to comment #1) > I think this was fixed by > https://github.com/D-Programming-Language/dmd/commit/4a0f6cca0ade3fdc7e5dc50e8b537db081301028. > > Check out the latest master. Done, and it's indeed fixed. Closed.