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

            Bug ID: 105436
           Summary: parse error with >= operator expression in template
                    argument list in C++14 mode since r13-40
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ppalka at gcc dot gnu.org
  Target Milestone: ---

After r13-40-ga282da2243103d we reject the following presumably valid snippet
in C++14 mode (and earlier):

template<bool> struct A;
template<int N> A<N >= 5> f();

with the parse error:

testcase.C:2:21: error: ‘>=’ should be ‘> =’ to terminate a template argument
list
    2 | template<int N> A<N >= 5> f();
      |                     ^~
      |                     > =
testcase.C:2:24: error: expected unqualified-id before numeric constant
    2 | template<int N> A<N >= 5> f();

Reply via email to