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.