http://d.puremagic.com/issues/show_bug.cgi?id=8458

           Summary: scope(exit) enters infinite loop (DMD 2.059)
           Product: D
           Version: D2
          Platform: All
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Mike Parker <[email protected]> 2012-07-28 09:52:10 PDT ---
#####################################
void doSomething()
{
    throw new Exception("doSomething failed");
}

void term()
{
    Object o;
    auto s = o.toString();
}

void main()
{
    scope(exit) term();
    doSomething();
}
#####################################

Results in the following message infinitely printed to the console:

#####################################
Bypasses [email protected](3)
=== Bypassed ===
[email protected](3): doSomething failed
----------------
40BF20
40BDAB
4025B0
4025EA
40220B
41197D
----------------
object.Error: Access Violation
----------------
40BF20
40BDAB
4020AA^C
#####################################

Comment out the exception in doSomething and the infinite loop disappears.

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

Reply via email to