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

           Summary: Spurious warning when exiting out of a labeled
                    Do-While
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: kekeni...@yahoo.co.jp


--- Comment #0 from kekeni...@yahoo.co.jp 2012-05-06 04:06:47 PDT ---
Building the following code, I get an incorrect warning.

int test()
{
    loop:
    do {
        break loop;
    } while(false);
    return 0; // isn't unreachable.
}
-----------------------------------
Warning: statement is not reachable

D1 does not warn.

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

Reply via email to