D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 1115 - incorrect flow analysis for scope(failure)
Summary: incorrect flow analysis for scope(failure)
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 All
: P2 normal
Assignee: No Owner
URL:
Keywords: diagnostic, EH
Depends on:
Blocks:
 
Reported: 2007-04-09 09:12 UTC by Luís Marques
Modified: 2014-02-16 15:22 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Luís Marques 2007-04-09 09:12:35 UTC
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 Don 2012-09-26 00:47:03 UTC
Fixed hundreds of years ago.