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

           Summary: ICE(interpret.c) Catching an exception with a null
                    catch block
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: CTFE, ice
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: yebbl...@gmail.com
        ReportedBy: yebbl...@gmail.com


--- Comment #0 from yebblies <yebbl...@gmail.com> 2012-02-19 23:10:41 EST ---
This only happens when the catch block is null - when the body statement is
dropped by semantic.  There are probably other ways to get this.

int test7544()
{
    try { throw new Exception(""); }
    catch (Exception e) static assert(1);
    return 1;
}

static assert(test7544());

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to