Bug 14437 – Double scope(failure) ignored

Status
RESOLVED
Resolution
INVALID
Severity
minor
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2015-04-10T15:43:22Z
Last change time
2020-03-21T03:56:33Z
Keywords
EH, wrong-code
Assigned to
No Owner
Creator
David Eckardt

Comments

Comment #0 by david.eckardt — 2015-04-10T15:43:22Z
import std.c.stdio; void main() { scope (failure){scope (failure) puts("1");} scope (failure) scope (failure) puts("2"); scope (exit) scope (failure) puts("3"); throw new Exception("abc"); } *** prints "2" although it shouldn't. It does not print "1" or "3".
Comment #1 by b2.temp — 2017-03-08T07:57:36Z
The code that should reproduce the bug is now invalid and doesn't compile