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
* [Bug c++/105583] Syntax error when alias template in requires-clause
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 ` hewillk at gmail dot com
2022-10-27 5:09 ` pinskia at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: hewillk at gmail dot com @ 2022-05-12 13:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105583
--- Comment #1 from 康桓瑋 <hewillk at gmail dot com> ---
It may be a duplicate of PR102881 since decltype lambda is also used.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/105583] Syntax error when alias template in requires-clause
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
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-10-27 5:09 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105583
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |c++-lambda
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/105583] Syntax error when alias template in requires-clause
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
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-10-27 5:09 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105583
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2022-10-27
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/105583] Syntax error when alias template in requires-clause
2022-05-12 13:16 [Bug c++/105583] New: Syntax error when alias template in requires-clause hewillk at gmail dot com
` (2 preceding siblings ...)
2022-10-27 5:09 ` pinskia at gcc dot gnu.org
@ 2024-04-13 8:06 ` pinskia at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-04-13 8:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105583
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |14.0
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed on the trunk for GCC 14 by the recent lambda patches.
^ 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).