www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11628] New: nested scope guards go cyclic

reply d-bugmail puremagic.com writes:
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: nobody puremagic.com
        ReportedBy: jiki red.email.ne.jp


--- Comment #0 from jiki red.email.ne.jp 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: -------
Nov 27 2013
parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11628



--- Comment #1 from jiki red.email.ne.jp 2013-11-27 20:23:40 PST ---
I've hit by D2.064.2.
But it does not reproduce by Git-head.
It might be already FIXED.

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