[Issue 7049] New: Multiple scope(failure) blocks don't work in @safe code
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Dec 2 08:50:52 PST 2011
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: nobody at puremagic.com
ReportedBy: code at klickverbot.at
--- Comment #0 from klickverbot <code at 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: -------
More information about the Digitalmars-d-bugs
mailing list