[Issue 11059] New: alias to symbol in different conditional compilation scope depends on lexical order
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Sep 17 11:12:29 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11059
Summary: alias to symbol in different conditional compilation
scope depends on lexical order
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: code at dawg.eu
--- Comment #0 from Martin Nowak <code at dawg.eu> 2013-09-17 11:12:28 PDT ---
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.
--
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