public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/92707] type alias on type alias on lambda in unevaluated context does not work
[not found] <bug-92707-4@http.gcc.gnu.org/bugzilla/>
@ 2023-05-31 15:52 ` f.heckenbach@fh-soft.de
2024-04-09 12:20 ` ppalka at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 4+ messages in thread
From: f.heckenbach@fh-soft.de @ 2023-05-31 15:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92707
Frank Heckenbach <f.heckenbach@fh-soft.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |f.heckenbach@fh-soft.de
--- Comment #1 from Frank Heckenbach <f.heckenbach@fh-soft.de> ---
Probably the same bug in a slightly different form:
% cat test.cpp
template <typename> struct S { };
template <int> using A = S <decltype ([] { })>;
template <int d> using B = A <d>;
B <0> a;
% g++ -std=c++20 -Wall -Wextra test.cpp
test.cpp:4:1: error: 'B' does not name a type
4 | B <0> a;
| ^
It works when using A instead of B.
It works when using an alias for "decltype ([] { })".
Other compilers accept it as is.
Also, I find the message confusing (even if it was rightly rejected): Of
course, 'B' does not name a type. It's followed by template arguments, so 'B'
shouldn't be a type, but a template or template alias, or 'B <0>' should be a
type.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/92707] type alias on type alias on lambda in unevaluated context does not work
[not found] <bug-92707-4@http.gcc.gnu.org/bugzilla/>
2023-05-31 15:52 ` [Bug c++/92707] type alias on type alias on lambda in unevaluated context does not work f.heckenbach@fh-soft.de
@ 2024-04-09 12:20 ` ppalka at gcc dot gnu.org
2024-04-13 7:33 ` pinskia at gcc dot gnu.org
2024-04-13 15:13 ` ppalka at gcc dot gnu.org
3 siblings, 0 replies; 4+ messages in thread
From: ppalka at gcc dot gnu.org @ 2024-04-09 12:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92707
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fchelnokov at gmail dot com
--- Comment #2 from Patrick Palka <ppalka at gcc dot gnu.org> ---
*** Bug 114654 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/92707] type alias on type alias on lambda in unevaluated context does not work
[not found] <bug-92707-4@http.gcc.gnu.org/bugzilla/>
2023-05-31 15:52 ` [Bug c++/92707] type alias on type alias on lambda in unevaluated context does not work f.heckenbach@fh-soft.de
2024-04-09 12:20 ` ppalka at gcc dot gnu.org
@ 2024-04-13 7:33 ` pinskia at gcc dot gnu.org
2024-04-13 15:13 ` ppalka at gcc dot gnu.org
3 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-04-13 7:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92707
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |14.0
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note clang rejects the original testcase in comment #0 but EDG, MSVC all accept
it. Plus GCC now accepts it on the trunk.
So closing as fixed.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/92707] type alias on type alias on lambda in unevaluated context does not work
[not found] <bug-92707-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2024-04-13 7:33 ` pinskia at gcc dot gnu.org
@ 2024-04-13 15:13 ` ppalka at gcc dot gnu.org
3 siblings, 0 replies; 4+ messages in thread
From: ppalka at gcc dot gnu.org @ 2024-04-13 15:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92707
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |elliot.haisley at gmail dot com
--- Comment #4 from Patrick Palka <ppalka at gcc dot gnu.org> ---
*** Bug 106221 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-04-13 15:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-92707-4@http.gcc.gnu.org/bugzilla/>
2023-05-31 15:52 ` [Bug c++/92707] type alias on type alias on lambda in unevaluated context does not work f.heckenbach@fh-soft.de
2024-04-09 12:20 ` ppalka at gcc dot gnu.org
2024-04-13 7:33 ` pinskia at gcc dot gnu.org
2024-04-13 15:13 ` ppalka 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).