From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 81513 invoked by alias); 10 Apr 2015 21:47:07 -0000 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 Received: (qmail 81462 invoked by uid 48); 10 Apr 2015 21:47:02 -0000 From: "doko at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/65736] New: [5 Regression] ICE (in process_init_constructor_array, at cp/typeck2.c:1263) on arm-linux-gnueabihf Date: Fri, 10 Apr 2015 21:47: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-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: doko at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-04/txt/msg00906.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65736 Bug ID: 65736 Summary: [5 Regression] ICE (in process_init_constructor_array, at cp/typeck2.c:1263) on arm-linux-gnueabihf Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: doko at gcc dot gnu.org Created attachment 35291 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35291&action=edit preprocessed source $ cat TLCS900h_registers.ii typedef char uint8; int gprBank[1]; uint8 *gprMapB[] { (uint8 *)&gprBank[0] + 1 $ g++ -c -g -O2 TLCS900h_registers.ii TLCS900h_registers.ii:3:18: warning: extended initializer lists only available w ith -std=c++11 or -std=gnu++11 uint8 *gprMapB[] { ^ TLCS900h_registers.ii:4:24: error: expected '}' at end of input (uint8 *)&gprBank[0] + 1 ^ TLCS900h_registers.ii:4:24: internal compiler error: in process_init_constructor_array, at cp/typeck2.c:1263 0x1f68c1 process_init_constructor_array ../../src/gcc/cp/typeck2.c:1262 0x1f68c1 process_init_constructor ../../src/gcc/cp/typeck2.c:1560 0x1f68c1 digest_init_r ../../src/gcc/cp/typeck2.c:1094 0x1f7e1f digest_init_flags(tree_node*, tree_node*, int) ../../src/gcc/cp/typeck2.c:1139 0x1f7e1f store_init_value(tree_node*, tree_node*, vec**, int) ../../src/gcc/cp/typeck2.c:813 0x18a567 check_initializer ../../src/gcc/cp/decl.c:6004 0x1a71bb cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int) ../../src/gcc/cp/decl.c:6616 0x253863 cp_parser_init_declarator ../../src/gcc/cp/parser.c:17299 0x2546cf cp_parser_simple_declaration ../../src/gcc/cp/parser.c:11607 0x23e8a7 cp_parser_block_declaration ../../src/gcc/cp/parser.c:11481 0x25e0eb cp_parser_declaration ../../src/gcc/cp/parser.c:11378 0x25cf25 cp_parser_declaration_seq_opt ../../src/gcc/cp/parser.c:11264 0x25d195 cp_parser_translation_unit ../../src/gcc/cp/parser.c:4100 0x25d195 c_parse_file() ../../src/gcc/cp/parser.c:33192 0x34830f c_common_parse_file() ../../src/gcc/c-family/c-opts.c:1057 Please submit a full bug report, with preprocessed source if appropriate.