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

            Bug ID: 99035
           Summary: [9/10/11 Regression] ICE in declare_weak, at
                    varasm.c:5930
           Product: gcc
           Version: 11.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 r7 (r9 between 20190217 and 20190224),
with option -fsyntax-only :


$ g++-11-20210207 -c weak-6.c -fsyntax-only
weak-6.c:7:14: internal compiler error: in declare_weak, at varasm.c:5930
    7 | #pragma weak foo
      |              ^~~
0xf96654 declare_weak(tree_node*)
        ../../gcc/varasm.c:5930
0x86f6e1 apply_pragma_weak
        ../../gcc/c-family/c-pragma.c:265
0x870ae1 handle_pragma_weak
        ../../gcc/c-family/c-pragma.c:376
0x7777ac cp_parser_pragma
        ../../gcc/cp/parser.c:45120
0x7a03db cp_parser_translation_unit
        ../../gcc/cp/parser.c:4936
0x7a03db c_parse_file()
        ../../gcc/cp/parser.c:45179
0x86d982 c_common_parse_file()
        ../../gcc/c-family/c-opts.c:1218

Reply via email to