D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 11059 - alias to symbol in different conditional compilation scope depends on lexical order
Summary: alias to symbol in different conditional compilation scope depends on lexical...
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P3 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-17 11:12 UTC by Martin Nowak
Modified: 2024-12-13 18:11 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Martin Nowak 2013-09-17 11:12:28 UTC
cat > bug.d << CODE
static if (true)
    enum a = b;
static if (true)
    enum b = 0;
CODE

dmd -c bug.d
----

Obviously this is a problem with semantic analysis being done in lexical order instead of lazily.
Comment 1 dlangBugzillaToGithub 2024-12-13 18:11:32 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/18672

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB