← Back to index
|
Original Bugzilla link
Bug 1115 – incorrect flow analysis for scope(failure)
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
All
Creation time
2007-04-09T09:12:00Z
Last change time
2014-02-16T15:22:23Z
Keywords
diagnostic, EH
Assigned to
nobody
Creator
luis
Comments
Comment #0
by luis — 2007-04-09T09:12:35Z
void main() { scope(failure) { throw new Exception("overridden original exception"); } throw new Exception("original"); } >dmd -run Error: overridden original exception >dmd -w -run warning - Error: statement is not reachable
Comment #1
by clugdbug — 2012-09-26T00:47:03Z
Fixed hundreds of years ago.