[Issue 1093] New: DMD doesn't generate correct try block code
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Apr 4 23:50:20 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1093
Summary: DMD doesn't generate correct try block code
Product: D
Version: 1.010
Platform: PC
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: davidl at 126.com
void testfunc()
{
static int i;
i++;
scope(exit) printf( "i=%d\n", --i);
if (i==10)
throw new Exception(``);
testfunc;
}
void main()
{
try
{
testfunc;
}
finally
{}
printf(`hello`);
}
--
More information about the Digitalmars-d-bugs
mailing list