From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23896 invoked by alias); 11 Jan 2013 22:35:41 -0000 Received: (qmail 21906 invoked by uid 48); 11 Jan 2013 22:35:04 -0000 From: "ppluzhnikov at google dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/55951] New: ICE in check_array_designated_initializer, at cp/decl.c:4785 Date: Fri, 11 Jan 2013 22:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ppluzhnikov at google dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2013-01/txt/msg01069.txt.bz2 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: unassigned@gcc.gnu.org ReportedBy: ppluzhnikov@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 for instructions.