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

            Bug ID: 98297
           Summary: [9/10/11 Regression] ICE in
                    cp_parser_elaborated_type_specifier, at
                    cp/parser.c:19653
           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 r8 :


$ cat z1.cc
template <template <class> class a> struct [[b]] a <int>;


$ g++-11-20201213 -c z1.cc
z1.cc:1:50: internal compiler error: Segmentation fault
    1 | template <template <class> class a> struct [[b]] a <int>;
      |                                                  ^~~~~~~
0xc8f5ff crash_signal
        ../../gcc/toplev.c:327
0x7507a5 cp_parser_elaborated_type_specifier
        ../../gcc/cp/parser.c:19653
0x739283 cp_parser_type_specifier
        ../../gcc/cp/parser.c:18393
0x73a0b6 cp_parser_decl_specifier_seq
        ../../gcc/cp/parser.c:14990
0x75bd05 cp_parser_single_declaration
        ../../gcc/cp/parser.c:30321
0x75c095 cp_parser_template_declaration_after_parameters
        ../../gcc/cp/parser.c:29984
0x75c84b cp_parser_explicit_template_declaration
        ../../gcc/cp/parser.c:30250
0x75c84b cp_parser_template_declaration_after_export
        ../../gcc/cp/parser.c:30269
0x75ecf9 cp_parser_declaration
        ../../gcc/cp/parser.c:13996
0x75e183 cp_parser_translation_unit
        ../../gcc/cp/parser.c:4926
0x75e183 c_parse_file()
        ../../gcc/cp/parser.c:45106
0x82acf2 c_common_parse_file()
        ../../gcc/c-family/c-opts.c:1211

Reply via email to