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());
Comment #1 by yebblies — 2012-02-19T04:20:32Z
Comment #2 by github-bugzilla — 2012-02-19T13:11:57Z
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
Comment #3 by github-bugzilla — 2012-02-19T13:24:47Z
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