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.