http://d.puremagic.com/issues/show_bug.cgi?id=7049
Summary: Multiple scope(failure) blocks don't work in @safe code Product: D Version: D2 Platform: Other OS/Version: All Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: c...@klickverbot.at --- Comment #0 from klickverbot <c...@klickverbot.at> 2011-12-02 08:49:46 PST --- --- @safe void foo() { scope (failure) {} scope (failure) {} } --- DMD 2.057 Git (887dda0ba) gives: --- Error: can only catch class objects derived from Exception in @safe code, not 'object.Throwable' Error: undefined identifier __o1300 --- The reason for this are the artificial try/catch blocks generated around statement.c:530. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------