Summary: Multiple scope(failure) blocks don't work in @safe
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from klickverbot <> 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
Error: undefined identifier __o1300

The reason for this are the artificial try/catch blocks generated around

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to