Bug 6149 – ICE(interpret.c) Assertion failure: 'v2 && v2->getValue()'

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-06-11T20:18:00Z
Last change time
2011-06-29T15:34:48Z
Assigned to
nobody
Creator
bus_dbugzilla

Comments

Comment #0 by bus_dbugzilla — 2011-06-11T20:18:09Z
This is a regression in DMD 2.053: const a = ""; int foo() { const bar = a; return 1; } enum b = foo(); Result ---------- Assertion failure: 'v2 && v2->getValue()' on line 2615 in file 'interpret.c' abnormal program termination
Comment #1 by ibuclaw — 2011-06-29T13:33:47Z
I don't think I can reproduce this in the current dmd trunk.
Comment #2 by kennytm — 2011-06-29T15:34:35Z
(In reply to comment #1) > I don't think I can reproduce this in the current dmd trunk. Apparently fixed in https://github.com/D-Programming-Language/dmd/commit/d1c75.