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

            Bug ID: 105186
           Summary: ICE in canonicalize_attr_name, at attribs.h:146
           Product: gcc
           Version: 12.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 r5 :


$ cat z1.cc
__attribute__((__int128))


$ g++-12-20220403 -c z1.cc
z1.cc:1:16: internal compiler error: Segmentation fault
    1 | __attribute__((__int128))
      |                ^~~~~~~~
0x10d3b0f crash_signal
        ../../gcc/toplev.cc:322
0x9035f5 tree_check(tree_node*, char const*, int, char const*, tree_code)
        ../../gcc/tree.h:3456
0x9035f5 canonicalize_attr_name
        ../../gcc/attribs.h:146
0x9035f5 cp_parser_gnu_attribute_list
        ../../gcc/cp/parser.cc:28737
0x903831 cp_parser_gnu_attributes_opt
        ../../gcc/cp/parser.cc:28662
0x94439c cp_parser_declaration
        ../../gcc/cp/parser.cc:14844
0x94512d cp_parser_translation_unit
        ../../gcc/cp/parser.cc:5010
0x94512d c_parse_file()
        ../../gcc/cp/parser.cc:48057
0xad39a2 c_common_parse_file()
        ../../gcc/c-family/c-opts.cc:1240

Reply via email to