Bug 3949 – Wrong sized array plus pragma crashes compiler
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2010-03-13T04:48:00Z
Last change time
2014-02-15T02:45:43Z
Keywords
ice-on-invalid-code
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0 by bearophile_hugs — 2010-03-13T04:48:43Z
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.