[Issue 8052] New: Spurious warning when exiting out of a labeled Do-While
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun May 6 04:05:31 PDT 2012
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: nobody at puremagic.com
ReportedBy: kekeniro2 at yahoo.co.jp
--- Comment #0 from kekeniro2 at 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: -------
More information about the Digitalmars-d-bugs
mailing list