D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3949 - Wrong sized array plus pragma crashes compiler
Summary: Wrong sized array plus pragma crashes compiler
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P2 normal
Assignee: No Owner
URL:
Keywords: ice-on-invalid-code
Depends on:
Blocks:
 
Reported: 2010-03-13 04:48 UTC by bearophile_hugs
Modified: 2014-02-15 02:45 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description bearophile_hugs 2010-03-13 04:48:43 UTC
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.
Comment 1 Don 2010-05-12 12:33:01 UTC
Fixed DMD2.045 (same root cause as bug 3974)