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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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.


-- 

Reply via email to