D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 8043 - DMD Crash on undefined identifier
Summary: DMD Crash on undefined identifier
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-04 16:39 UTC by Andrej Mitrovic
Modified: 2012-05-04 17:43 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 Andrej Mitrovic 2012-05-04 16:39:22 UTC
void main()
{
    enum B = 1;
    enum a = [b];
}

I get the ol' dialog box:

---------------------------
dmd.exe - Application Error
---------------------------
The instruction at "0x0044b049" referenced memory at "0x00000000". The memory could not be "read".

Seems to only happen with enums and an array of an undefined symbol.
Comment 1 Walter Bright 2012-05-04 17:43:52 UTC
Fails on 2.059, but works correctly on 2.060 head.