public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/105583] New: Syntax error when alias template in requires-clause
@ 2022-05-12 13:16 hewillk at gmail dot com
  2022-05-12 13:18 ` [Bug c++/105583] " hewillk at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: hewillk at gmail dot com @ 2022-05-12 13:16 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 105583
           Summary: Syntax error when alias template in requires-clause
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

template<class>
constexpr bool v = true;

template<class>
using A = decltype([] { return 0; }());

template<class T>
using B = decltype([] {
  if (requires { v<A<T>&>; }) { }
}());

https://godbolt.org/z/WseWqKMcG

gcc rejects the above legal syntax.

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

end of thread, other threads:[~2024-04-13  8:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-12 13:16 [Bug c++/105583] New: Syntax error when alias template in requires-clause hewillk at gmail dot com
2022-05-12 13:18 ` [Bug c++/105583] " hewillk at gmail dot com
2022-10-27  5:09 ` pinskia at gcc dot gnu.org
2022-10-27  5:09 ` pinskia at gcc dot gnu.org
2024-04-13  8:06 ` 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).