https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89211
Bug ID: 89211 Summary: [8/9 Regression] ICE in int_mode_for_mode, at stor-layout.c:403 Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Changed before 20180525, gcc-7 compiles it : $ cat z1.c void f (); void f () { void f (struct S); } $ gcc-9-20190203 -c z1.c z1.c: In function 'f': z1.c:4:18: warning: 'struct S' declared inside parameter list will not be visible outside of this definition or declaration 4 | void f (struct S); | ^ during RTL pass: expand z1.c:2:6: internal compiler error: in int_mode_for_mode, at stor-layout.c:403 2 | void f () | ^ 0xa7d44b int_mode_for_mode(machine_mode) ../../gcc/stor-layout.c:403 0x7c7fde emit_move_via_integer ../../gcc/expr.c:3357 0x7d03c9 emit_move_insn_1(rtx_def*, rtx_def*) ../../gcc/expr.c:3718 0x7d06de emit_move_insn(rtx_def*, rtx_def*) ../../gcc/expr.c:3786 0x81d0d6 assign_parm_setup_reg ../../gcc/function.c:3336 0x81d0d6 assign_parms ../../gcc/function.c:3631 0x81d8f3 expand_function_start(tree_node*) ../../gcc/function.c:5069 0x6db723 execute ../../gcc/cfgexpand.c:6397