Bug 7544 – ICE(interpret.c) Catching an exception with a null catch block
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-02-19T04:10:00Z
Last change time
2015-06-09T05:11:35Z
Keywords
CTFE, ice, pull
Assigned to
yebblies
Creator
yebblies
Comments
Comment #0 by yebblies — 2012-02-19T04:10:41Z
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());