Bug creation and email sending has been disabled, file new bugs at gcc.gnu.org/bugzilla
Bug 127 - ICE on empty static array
Summary: ICE on empty static array
Status: RESOLVED FIXED
Alias: None
Product: GDC
Classification: Unclassified
Component: gdc (show other bugs)
Version: development
Hardware: All All
: --- normal
Assignee: Iain Buclaw
URL:
Depends on:
Blocks:
 
Reported: 2014-05-27 19:17 CEST by Iain Buclaw
Modified: 2014-05-31 17:19 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Iain Buclaw 2014-05-27 19:17:07 CEST
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.