[Issue 3949] New: Wrong sized array plus pragma crashes compiler

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 13 04:48:44 PST 2010


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

           Summary: Wrong sized array plus pragma crashes compiler
           Product: D
           Version: 2.041
          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 2010-03-13 04:48:43 PST ---
This crashes the compiler:

enum int[1] a = [0, 1];
pragma(msg, a);


The compiler prints:
Assertion failure: 'j < edim' on line 445 in file 'init.c'

See related bug 3948 too. I don't know if the cause is the same.

-- 
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