[Issue 10944] New: [ICE](interpret.c line 310) with arith operation on missing variable

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Sep 1 16:25:54 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10944

           Summary: [ICE](interpret.c line 310) with arith operation on
                    missing variable
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2013-09-01 16:25:54 PDT ---
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'

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list