[Issue 13975] New: ICE: dmd crash if -gc and enum member is immutable int

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Jan 13 03:27:03 PST 2015


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 at puremagic.com
          Reporter: bb.temp at 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

--


More information about the Digitalmars-d-bugs mailing list