[Issue 1453] New: internal compiler error: Segmentation fault
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Aug 29 13:04:38 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1453
Summary: internal compiler error: Segmentation fault
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: mariusmuja at gmail.com
Hi,
I'm getting the following compiler cash:
test.d: In member function 'bar':
test.d:12: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
when I'm compiling the following code with gdc 0.24:
private class A
{
A[] childs;
void foo()
{
static int b = 0;
}
void bar()
{
if (childs.length!=0) {
int n = childs.length;
float vec[] = new float[n];
}
}
}
I'm not sure if the problem is with gdc, it might be gcc's code
generator/optimizer fault. I'm saying this because the crash only happens when
using the -O2 and -O3 compiler flags.
--
More information about the D.gnu
mailing list