digitalmars.D.bugs - [Issue 13975] New: ICE: dmd crash if -gc and enum member is
- via Digitalmars-d-bugs (30/30) Jan 13 2015 https://issues.dlang.org/show_bug.cgi?id=13975
https://issues.dlang.org/show_bug.cgi?id=13975 Issue ID: 13975 Summary: ICE: dmd crash if -gc and enum member is immutable int Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Severity: normal Priority: P1 Component: DMD Assignee: nobody puremagic.com Reporter: bb.temp gmx.com dmd crashes when compiling the following program: --- static immutable int a = 8; enum Bar {aa = a} void foo(Bar bar){} void main(){} --- only with the switches: -debug -gc the crash doesn't happend when a is declared as - static const int a = 8; - static immutable short a = 8; - static immutable uint a = 8; more generally it happens only if a is (optionnaly static) immutable int dmd version: 2.066.1 os: windows 7 32 bit --
Jan 13 2015