[Issue 235] New: goto & scope: cannot goto forward into different try block level
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jul 2 08:49:11 PDT 2006
http://d.puremagic.com/issues/show_bug.cgi?id=235
Summary: goto & scope: cannot goto forward into different try
block level
Product: D
Version: 0.163
Platform: PC
OS/Version: Linux
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: thomas-dloop at kuehne.cn
According to DMD-0.162's documentation the code below is valid but is rejected
by DMD: cannot goto forward into different try block level
void foo(bool b){
if(b){
goto label;
}
status = 2;
scope(exit){
status--;
}
label:
{
}
}
--
More information about the Digitalmars-d-bugs
mailing list