[Issue 2456] New: "cannot put catch statement inside finally block"
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Nov 15 06:51:35 PST 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2456
Summary: "cannot put catch statement inside finally block"
Product: D
Version: 1.030
Platform: PC
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: fvbommel at wxs.nl
I get an error ("cannot put catch statement inside finally block") on the
following code:
----
module test;
extern(C) int printf(char*, ...);
void verify() {}
void main() {
scope(success) {
scope(failure)
printf("Verification failed!\n");
verify();
}
}
----
(GDC allows this without complaining)
Also, this error doesn't print a source location.
--
More information about the Digitalmars-d-bugs
mailing list