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

            Bug ID: 90760
           Summary: ICE in set_section, at symtab.c:1573
           Product: gcc
           Version: 10.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 gcc-5 :


$ cat z1.c
void f () __attribute__ ((alias ("g")));
void f () __attribute__ ((section ("h")));


$ gcc-10-20190602 -c z1.c
z1.c:2:1: internal compiler error: in set_section, at symtab.c:1573
    2 | void f () __attribute__ ((section ("h")));
      | ^~~~
0x6f38aa symtab_node::set_section(char const*)
        ../../gcc/symtab.c:1573
0x5cea11 merge_decls
        ../../gcc/c/c-decl.c:2845
0x5cea11 duplicate_decls
        ../../gcc/c/c-decl.c:2907
0x5d0d00 pushdecl(tree_node*)
        ../../gcc/c/c-decl.c:3093
0x5e0fcd start_decl(c_declarator*, c_declspecs*, bool, tree_node*)
        ../../gcc/c/c-decl.c:5037
0x623443 c_parser_declaration_or_fndef
        ../../gcc/c/c-parser.c:2154
0x6295b3 c_parser_external_declaration
        ../../gcc/c/c-parser.c:1653
0x62a079 c_parser_translation_unit
        ../../gcc/c/c-parser.c:1534
0x62a079 c_parse_file()
        ../../gcc/c/c-parser.c:19884
0x671b60 c_common_parse_file()
        ../../gcc/c-family/c-opts.c:1156

Reply via email to