https://issues.dlang.org/show_bug.cgi?id=13363
Issue ID: 13363
Summary: DMD accepts bodyless if statement
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: accepts-invalid
Severity: normal
Priority: P1
Component: DMD
Assignee: [email protected]
Reporter: [email protected]
DMD currently accepts the following code:
IRQualifiedName parseQualifiedName()
{
IRQualifiedName current;
do
{
if((tok))
AfterProc:
} while((tok)) return current;
}
--
