[Issue 11628] New: nested scope guards go cyclic
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Nov 27 18:24:23 PST 2013
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 at puremagic.com
ReportedBy: jiki at red.email.ne.jp
--- Comment #0 from jiki at 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: -------
More information about the Digitalmars-d-bugs
mailing list