[Issue 1930] New: Internal compiler error: constructing classes defined inside functions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Mar 18 12:27:17 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1930
Summary: Internal compiler error: constructing classes defined
inside functions
Product: DGCC aka GDC
Version: 0.24
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: glue layer
AssignedTo: dvdfrdmn at users.sf.net
ReportedBy: dmd at mailinator.com
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.
--
More information about the D.gnu
mailing list