public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/110680] New: erroneous error "non-template type 'C' used as a template" @ 2023-07-16 0:46 eric.niebler at gmail dot com 2023-07-16 0:47 ` [Bug c++/110680] " pinskia at gcc dot gnu.org 2024-04-13 8:26 ` pinskia at gcc dot gnu.org 0 siblings, 2 replies; 3+ messages in thread From: eric.niebler at gmail dot com @ 2023-07-16 0:46 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110680 Bug ID: 110680 Summary: erroneous error "non-template type 'C' used as a template" Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: eric.niebler at gmail dot com Target Milestone: --- The following valid C++20 is rejected by gcc trunk: template <auto X = []{}> struct S { auto f() { return X; } }; template <class T> using C = decltype(S().f()); using D = C<int>; <source>:29:16: error: non-template type 'C' used as a template 29 | using D = C<int>; | ^ Compiler returned: 1 https://godbolt.org/z/b3eY8fWTv ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/110680] erroneous error "non-template type 'C' used as a template" 2023-07-16 0:46 [Bug c++/110680] New: erroneous error "non-template type 'C' used as a template" eric.niebler at gmail dot com @ 2023-07-16 0:47 ` pinskia at gcc dot gnu.org 2024-04-13 8:26 ` pinskia at gcc dot gnu.org 1 sibling, 0 replies; 3+ messages in thread From: pinskia at gcc dot gnu.org @ 2023-07-16 0:47 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110680 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |107430 Keywords| |c++-lambda --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I bet there is already a dup of this one. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107430 [Bug 107430] [meta-bug] lambda in decltype ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/110680] erroneous error "non-template type 'C' used as a template" 2023-07-16 0:46 [Bug c++/110680] New: erroneous error "non-template type 'C' used as a template" eric.niebler at gmail dot com 2023-07-16 0:47 ` [Bug c++/110680] " pinskia at gcc dot gnu.org @ 2024-04-13 8:26 ` pinskia at gcc dot gnu.org 1 sibling, 0 replies; 3+ messages in thread From: pinskia at gcc dot gnu.org @ 2024-04-13 8:26 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110680 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Last reconfirmed| |2024-04-13 Status|UNCONFIRMED |NEW --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-04-13 8:26 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2023-07-16 0:46 [Bug c++/110680] New: erroneous error "non-template type 'C' used as a template" eric.niebler at gmail dot com 2023-07-16 0:47 ` [Bug c++/110680] " pinskia at gcc dot gnu.org 2024-04-13 8:26 ` 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).