http://d.puremagic.com/issues/show_bug.cgi?id=8898

           Summary: false positive dangling else warning
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: d...@dawgfoto.de


--- Comment #0 from d...@dawgfoto.de 2012-10-26 11:47:58 PDT ---
cat > bug.d << CODE
static if (true):

version (Foo)
{
}
else
{
}
CODE

> dmd -w -c bug
bug.d(6): Warning: else is dangling, add { } after condition at bug.d(1)

----

Seems like the else is associated with the static if by the dangling counter.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to