www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11059] New: alias to symbol in different conditional compilation scope depends on lexical order

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 puremagic.com
        ReportedBy: code dawg.eu



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: -------
Sep 17 2013