http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59080
Bug ID: 59080 Summary: [4.9 Regression] [c++11] ICE with array of auto Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org The following invalid code snippet (compiled with "-std=c++11") triggers an ICE on trunk: ============================== #include <initializer_list> auto foo[] = {}; ============================== bug.cc:3:15: internal compiler error: Segmentation fault auto foo[] = {}; ^ 0xb2a93f crash_signal ../../gcc/gcc/toplev.c:334 0x5dd6f9 tree_check5 ../../gcc/gcc/tree.h:2792 0x5dd6f9 unify_array_domain ../../gcc/gcc/cp/pt.c:17027 0x5d46ae unify ../../gcc/gcc/cp/pt.c:17198 0x5ddf46 unify_one_argument ../../gcc/gcc/cp/pt.c:16100 0x5d2e73 type_unification_real ../../gcc/gcc/cp/pt.c:16172 0x5e6b82 do_auto_deduction(tree_node*, tree_node*, tree_node*) ../../gcc/gcc/cp/pt.c:21402 0x57846c cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int) ../../gcc/gcc/cp/decl.c:6162 0x6661b1 cp_parser_init_declarator ../../gcc/gcc/cp/parser.c:16693 0x66791f cp_parser_simple_declaration ../../gcc/gcc/cp/parser.c:11107 0x64b820 cp_parser_block_declaration ../../gcc/gcc/cp/parser.c:10988 0x66f2e7 cp_parser_declaration ../../gcc/gcc/cp/parser.c:10885 0x66e008 cp_parser_declaration_seq_opt ../../gcc/gcc/cp/parser.c:10771 0x66f896 cp_parser_translation_unit ../../gcc/gcc/cp/parser.c:4007 0x66f896 c_parse_file() ../../gcc/gcc/cp/parser.c:31107 0x790973 c_common_parse_file() ../../gcc/gcc/c-family/c-opts.c:1055 Please submit a full bug report, [etc.] The regression appeared between 4.9.0 20131012 and 4.9.0 20131019.