[Bug c++/83489] New: [8 Regression] ICE in init_cumulative_args, at config/i386/i386.c:7223

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Dec 19 12:47:00 GMT 2017


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

            Bug ID: 83489
           Summary: [8 Regression] ICE in init_cumulative_args, at
                    config/i386/i386.c:7223
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: mpolacek at gcc dot gnu.org
  Target Milestone: ---

Starting from Marek's r255066 we ICE on:

$ g++ /home/marxin/Programming/gcc/gcc/testsuite/g++.dg/parse/crash58.C -Wabi
/home/marxin/Programming/gcc/gcc/testsuite/g++.dg/parse/crash58.C:5:14: error:
invalid use of type ‘void’ in parameter declaration
   A foo(void i = 0);  // { dg-error "incomplete type|invalid use" }
         ~~~~~^~~~~
/home/marxin/Programming/gcc/gcc/testsuite/g++.dg/parse/crash58.C:13:15: error:
invalid use of type ‘void’ in parameter declaration
 A A::foo(void i)  // { dg-error "incomplete type|invalid use" }
          ~~~~~^
/home/marxin/Programming/gcc/gcc/testsuite/g++.dg/parse/crash58.C: In member
function ‘A A::foo(<type error>)’:
/home/marxin/Programming/gcc/gcc/testsuite/g++.dg/parse/crash58.C:13:3:
internal compiler error: tree check: expected class ‘type’, have ‘exceptional’
(error_mark) in init_cumulative_args, at config/i386/i386.c:7223
 A A::foo(void i)  // { dg-error "incomplete type|invalid use" }
   ^
0x5e1768 tree_class_check_failed(tree_node const*, tree_code_class, char
const*, int, char const*)
        ../../gcc/tree.c:9179
0x112a73b tree_class_check(tree_node*, tree_code_class, char const*, int, char
const*)
        ../../gcc/tree.h:3242
0x112a73b init_cumulative_args(ix86_args*, tree_node*, rtx_def*, tree_node*,
int)
        ../../gcc/config/i386/i386.c:7223
0xac4d28 assign_parms_initialize_all
        ../../gcc/function.c:2296
0xacb466 gimplify_parameters()
        ../../gcc/function.c:3992
0xb3766c gimplify_body(tree_node*, bool)
        ../../gcc/gimplify.c:12625
0xb379f4 gimplify_function_tree(tree_node*)
        ../../gcc/gimplify.c:12787
0x98a4df cgraph_node::analyze()
        ../../gcc/cgraphunit.c:670
0x98d4e9 analyze_functions
        ../../gcc/cgraphunit.c:1131
0x98e592 symbol_table::finalize_compilation_unit()
        ../../gcc/cgraphunit.c:2690


More information about the Gcc-bugs mailing list