https://d.puremagic.com/issues/show_bug.cgi?id=11628

           Summary: nested scope guards go cyclic
           Product: D
           Version: D2
          Platform: All
        OS/Version: Windows
            Status: NEW
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from [email protected] 2013-11-27 18:24:22 PST ---
Running this program, it goes cyclic and never stops.
With -m64, it quickly stops.

CODE:
import std.stdio;
void main() {
    scope (exit) {
        assert(false); // triggers the nested scope guard
    }
    scope (failure) { 
      writeln("reaches though never seen");
    }
    throw new Exception("throw"); // non-cyclic if it throws an _Error_
}

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to