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

            Bug ID: 89932
           Summary: ICE in must_pass_in_stack_var_size_or_pad, at
                    calls.c:5824
           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: ---

Affects versions down to at least gcc-4.1 :


$ cat z1.c
enum bool a ();
unsigned a () {}


$ gcc-9-20190331 -c z1.c
z1.c: In function 'a':
z1.c:2:1: internal compiler error: Segmentation fault
    2 | unsigned a () {}
      | ^~~~~~~~
0xa748df crash_signal
        ../../gcc/toplev.c:326
0x6b1f2e must_pass_in_stack_var_size_or_pad(machine_mode, tree_node const*)
        ../../gcc/calls.c:5824
0xd123bf ix86_must_pass_in_stack
        ../../gcc/config/i386/i386.c:7065
0xd269cc classify_argument
        ../../gcc/config/i386/i386.c:7668
0xd2756a examine_argument
        ../../gcc/config/i386/i386.c:8061
0xd359ef ix86_return_in_memory
        ../../gcc/config/i386/i386.c:9437
0x80769f aggregate_value_p(tree_node const*, tree_node const*)
        ../../gcc/function.c:2109
0x809454 allocate_struct_function(tree_node*, bool)
        ../../gcc/function.c:4762
0x5ddc3f store_parm_decls()
        ../../gcc/c/c-decl.c:9527
0x61e879 c_parser_declaration_or_fndef
        ../../gcc/c/c-parser.c:2318
0x623a53 c_parser_external_declaration
        ../../gcc/c/c-parser.c:1653
0x624519 c_parser_translation_unit
        ../../gcc/c/c-parser.c:1534
0x624519 c_parse_file()
        ../../gcc/c/c-parser.c:19854
0x66ba20 c_common_parse_file()
        ../../gcc/c-family/c-opts.c:1156

Reply via email to