Thread overview
[Issue 7544] New: ICE(interpret.c) Catching an exception with a null catch block
Feb 19, 2012
yebblies
Feb 19, 2012
yebblies
Feb 19, 2012
Walter Bright
February 19, 2012
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: yebblies@gmail.com
        ReportedBy: yebblies@gmail.com


--- Comment #0 from yebblies <yebblies@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: -------
February 19, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7544


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from yebblies <yebblies@gmail.com> 2012-02-19 23:20:32 EST ---
https://github.com/D-Programming-Language/dmd/pull/737

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 19, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7544



--- Comment #2 from github-bugzilla@puremagic.com 2012-02-19 13:11:57 PST ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/4a36b2d3c15c83b47d39173ac150d1fad500273c Merge pull request #737 from yebblies/issue7544

Issue 7544 - ICE(interpret.c) Catching an exception with a null catch block

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 19, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7544



--- Comment #3 from github-bugzilla@puremagic.com 2012-02-19 13:24:47 PST ---
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/bdde56fbd14989d099ebeeeb0b5a2ad1377e3979 fix Issue 7544 - ICE(interpret.c) Catching an exception with a null catch block

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 19, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7544


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


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