Bug 1930 – Internal compiler error: constructing classes defined inside functions

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2008-03-18T14:27:00Z
Last change time
2015-06-09T01:31:21Z
Keywords
ice-on-valid-code
Assigned to
ibuclaw
Creator
dmd

Comments

Comment #0 by dmd — 2008-03-18T14:27:16Z
The following code generates this internal compiler error: internal compiler error: in estimate_num_insns_1, at tree-inline.c:1902 void test() { class A { } // The following line is what causes the error A a = new A(); } This fails with gdc-0.24, but works with dmd-0.120 on Fedora 8.
Comment #1 by ibuclaw — 2010-08-05T15:03:17Z
I cannot reproduce this using gdc 0.25 with gcc-4.1.2 and gcc-4.3.5.