https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88198

            Bug ID: 88198
           Summary: [7 Regression] ICE in process_init_constructor_array,
                    at cp/typeck2.c:1311
           Product: gcc
           Version: 7.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

Split out from PR86988.

On g++.dg/ext/vla19.C from GCC 8 branch and up GCC 7 ICEs with

> ./cc1plus  -quiet vla19.C
vla19.C: In function ‘void foo()’:
vla19.C:11:40: internal compiler error: in process_init_constructor_array, at
cp/typeck2.c:1311
   char b[1][a.r] = { { "12345678901" } };
                                        ^
0x8d12e0 process_init_constructor_array
        /space/rguenther/src/svn/gcc-7-branch/gcc/cp/typeck2.c:1310
0x8d2609 process_init_constructor
        /space/rguenther/src/svn/gcc-7-branch/gcc/cp/typeck2.c:1626
0x8d06a3 digest_init_r
        /space/rguenther/src/svn/gcc-7-branch/gcc/cp/typeck2.c:1138
0x8d08bf digest_init_flags(tree_node*, tree_node*, int, int)
        /space/rguenther/src/svn/gcc-7-branch/gcc/cp/typeck2.c:1183
0x8cebcc store_init_value(tree_node*, tree_node*, vec<tree_node*, va_gc,
vl_embed>**, int)
        /space/rguenther/src/svn/gcc-7-branch/gcc/cp/typeck2.c:807
0x80d737 check_initializer
        /space/rguenther/src/svn/gcc-7-branch/gcc/cp/decl.c:6377
0x810d4e cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int)
        /space/rguenther/src/svn/gcc-7-branch/gcc/cp/decl.c:7051
0x95da74 cp_parser_init_declarator
        /space/rguenther/src/svn/gcc-7-branch/gcc/cp/parser.c:19476
0x951a67 cp_parser_simple_declaration
        /space/rguenther/src/svn/gcc-7-branch/gcc/cp/parser.c:12852
0x951603 cp_parser_block_declaration
        /space/rguenther/src/svn/gcc-7-branch/gcc/cp/parser.c:12670
0x950a77 cp_parser_declaration_statement
        /space/rguenther/src/svn/gcc-7-branch/gcc/cp/parser.c:12279
0x94d166 cp_parser_statement
        /space/rguenther/src/svn/gcc-7-branch/gcc/cp/parser.c:10754
0x94ddbf cp_parser_statement_seq_opt
        /space/rguenther/src/svn/gcc-7-branch/gcc/cp/parser.c:11098
0x94dcba cp_parser_compound_statement
        /space/rguenther/src/svn/gcc-7-branch/gcc/cp/parser.c:11052
0x9617a3 cp_parser_function_body
        /space/rguenther/src/svn/gcc-7-branch/gcc/cp/parser.c:21523
0x96196c cp_parser_ctor_initializer_opt_and_function_body
        /space/rguenther/src/svn/gcc-7-branch/gcc/cp/parser.c:21559
0x96ad3a cp_parser_function_definition_after_declarator
        /space/rguenther/src/svn/gcc-7-branch/gcc/cp/parser.c:26354
0x96ab3e cp_parser_function_definition_from_specifiers_and_declarator
        /space/rguenther/src/svn/gcc-7-branch/gcc/cp/parser.c:26266
0x95d365 cp_parser_init_declarator
        /space/rguenther/src/svn/gcc-7-branch/gcc/cp/parser.c:19247
0x951a67 cp_parser_simple_declaration
        /space/rguenther/src/svn/gcc-7-branch/gcc/cp/parser.c:12852
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to