www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Bug 127] New: ICE on empty static array

Date: Tue, 27 May 2014 19:17:07 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"

http://bugzilla.gdcproject.org/show_bug.cgi?id=127

            Bug ID: 127
           Summary: ICE on empty static array
           Product: GDC
           Version: development
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gdc
          Assignee: ibuclaw gdcproject.org
          Reporter: ibuclaw gdcproject.org

Minimal Test:

int[0] a;     // OK
int[1][0] b;  // OK
int[0][1] c;  // ICE

bug.d:1: internal compiler error: Segmentation fault
0xa4a8af crash_signal
    ../../gcc/toplev.c:337
0x681d10 tree_check
    ../../gcc/tree.h:2712
0x681d10 dt_container(tree_node**, Type*, tree_node*)
    ../../gcc/d/d-todt.cc:151
0x6840a8 TypeSArray::toDtElem(tree_node**, Expression*)
    ../../gcc/d/d-todt.cc:973
0x6769c9 VarDeclaration::toObjFile(int)
    ../../gcc/d/d-objfile.cc:803
0x67ad6e Module::genobjfile(int)
    ../../gcc/d/d-objfile.cc:1477
0x6654a7 d_parse_file()
    ../../gcc/d/d-lang.cc:1125
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

-- 
You are receiving this mail because:
You are watching all bug changes.
May 27 2014