http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55951
Bug #: 55951 Summary: ICE in check_array_designated_initializer, at cp/decl.c:4785 Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: ppluzhni...@google.com Google ref: b/7991668 GCC-4.7 and current trunk ICE on this source: enum { A }; static const char *a[] = { [A] = "a" }; g++ -c t.cc t.cc:5:1: internal compiler error: in check_array_designated_initializer, at cp/decl.c:4785 }; ^ 0x516a63 check_array_designated_initializer ../../gcc/cp/decl.c:4785 0x528429 reshape_init_array_1 ../../gcc/cp/decl.c:5084 0x5274d9 reshape_init(tree_node*, tree_node*, int) ../../gcc/cp/decl.c:5470 0x529479 check_initializer ../../gcc/cp/decl.c:5642 0x53bc45 cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int) ../../gcc/cp/decl.c:6320 0x6133db cp_parser_init_declarator ../../gcc/cp/parser.c:16030 0x613c4e cp_parser_simple_declaration ../../gcc/cp/parser.c:10561 0x615a20 cp_parser_block_declaration ../../gcc/cp/parser.c:10442 0x61e60b cp_parser_declaration ../../gcc/cp/parser.c:10339 0x61d2dd cp_parser_declaration_seq_opt ../../gcc/cp/parser.c:10225 0x61eb82 cp_parser_translation_unit ../../gcc/cp/parser.c:3807 0x61eb82 c_parse_file() ../../gcc/cp/parser.c:28175 0x725a94 c_common_parse_file() ../../gcc/c-family/c-opts.c:1022 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.