public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/110797] New: GCC rejects std::template same_as<int> form
@ 2023-07-25  6:32 hewillk at gmail dot com
  2023-07-25  7:12 ` [Bug c++/110797] template keyword used as a distinguisher with concept to reject for auto usage pinskia at gcc dot gnu.org
  2023-07-25  7:14 ` pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: hewillk at gmail dot com @ 2023-07-25  6:32 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 110797
           Summary: GCC rejects std::template same_as<int> form
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

#include <concepts>

[[maybe_unused]] std::template same_as<int> auto i = 0;

I accidentally found that GCC rejected the above code, not sure if this is
valid code.

https://godbolt.org/z/edd6zx5df

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

end of thread, other threads:[~2023-07-25  7:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-25  6:32 [Bug c++/110797] New: GCC rejects std::template same_as<int> form hewillk at gmail dot com
2023-07-25  7:12 ` [Bug c++/110797] template keyword used as a distinguisher with concept to reject for auto usage pinskia at gcc dot gnu.org
2023-07-25  7:14 ` pinskia 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).