[Issue 8458] New: scope(exit) enters infinite loop (DMD 2.059)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jul 28 09:52:11 PDT 2012
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 at puremagic.com
ReportedBy: aldacron at gmail.com
--- Comment #0 from Mike Parker <aldacron at 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 at issue.d(3)
=== Bypassed ===
object.Exception at 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: -------
More information about the Digitalmars-d-bugs
mailing list