Bug 11628 – nested scope guards go cyclic

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2013-11-27T18:24:00Z
Last change time
2016-04-10T00:14:18Z
Keywords
wrong-code
Assigned to
nobody
Creator
jiki

Comments

Comment #0 by jiki — 2013-11-27T18:24:22Z
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_ }
Comment #1 by jiki — 2013-11-27T20:23:40Z
I've hit by D2.064.2. But it does not reproduce by Git-head. It might be already FIXED.
Comment #2 by jiki — 2016-04-10T00:14:18Z
I close this as WORKSFORME.