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

            Bug ID: 92837
           Summary: ICE on syntax error in requires clause, in
                    cp_parser_constraint_primary_expression
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: arthur.j.odwyer at gmail dot com
  Target Milestone: ---

Bug 92439 may be related.

cat >test.cc <<EOF
template<class> concept A = true;
template<class T> requires (A<T> int
EOF
g++ -std=c++2a test.cc

test.cc:2:29: internal compiler error: in
cp_parser_constraint_primary_expression, at cp/parser.c:27319
    3 | template<class T> requires (A<T> int
      |                             ^~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to