public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/105436] New: parse error with >= operator expression in template argument list in C++14 mode since r13-40
@ 2022-04-29 19:31 ppalka at gcc dot gnu.org
  2022-04-29 19:36 ` [Bug c++/105436] [13 Regression] " mpolacek at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: ppalka at gcc dot gnu.org @ 2022-04-29 19:31 UTC (permalink / raw)
  To: gcc-bugs

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();

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-05-04 16:32 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-29 19:31 [Bug c++/105436] New: parse error with >= operator expression in template argument list in C++14 mode since r13-40 ppalka at gcc dot gnu.org
2022-04-29 19:36 ` [Bug c++/105436] [13 Regression] " mpolacek at gcc dot gnu.org
2022-04-29 19:57 ` mpolacek at gcc dot gnu.org
2022-04-29 20:20 ` mpolacek at gcc dot gnu.org
2022-04-29 20:41 ` pinskia at gcc dot gnu.org
2022-04-30  7:11 ` jakub at gcc dot gnu.org
2022-04-30 14:38 ` mpolacek at gcc dot gnu.org
2022-05-02  6:45 ` rguenth at gcc dot gnu.org
2022-05-02 11:28 ` slyfox at gcc dot gnu.org
2022-05-04 15:13 ` mpolacek at gcc dot gnu.org
2022-05-04 16:02 ` cvs-commit at gcc dot gnu.org
2022-05-04 16:03 ` mpolacek at gcc dot gnu.org
2022-05-04 16:32 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).