www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1115] New: incorrect flow analysis for scope(failure)

http://d.puremagic.com/issues/show_bug.cgi?id=1115

           Summary: incorrect flow analysis for scope(failure)
           Product: D
           Version: 1.010
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic, EH
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: luismarques gmail.com


void main()
{
    scope(failure)
    {
        throw new Exception("overridden original exception");
    }
    throw new Exception("original");
}

dmd -run

dmd -w -run

--
Apr 09 2007