August 29, 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@users.sf.net
        ReportedBy: mariusmuja@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.


-- 

September 01, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1453


dvdfrdmn@users.sf.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #1 from dvdfrdmn@users.sf.net  2007-08-31 20:46 -------
Fixed in svn rev 150 / release 0.25


--