digitalmars.D.bugs - [Issue 8458] New: scope(exit) enters infinite loop (DMD 2.059)
- d-bugmail puremagic.com (52/52) Jul 28 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8458
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: nobody puremagic.com ReportedBy: aldacron gmail.com --- Comment #0 from Mike Parker <aldacron gmail.com> 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 object.Exception issue.d(3) === Bypassed === object.Exception issue.d(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: -------
Jul 28 2012