public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/114654] New: Alias template cannot be found
@ 2024-04-09 10:53 fchelnokov at gmail dot com
  2024-04-09 12:20 ` [Bug c++/114654] " ppalka at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: fchelnokov at gmail dot com @ 2024-04-09 10:53 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 114654
           Summary: Alias template cannot be found
           Product: gcc
           Version: 13.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: fchelnokov at gmail dot com
  Target Milestone: ---

This program

```
template <auto L, auto L2>
struct S {};

template<auto L>
using A = S<L, []{}>;

template<typename I>
using B = A<[]{}>;

using C = B<int>;
```

looks valid and it is accepted by Clang and MSVC, but GCC complains:
<source>:10:11: error: 'B' does not name a type
   10 | using C = B<int>;
Online demo: https://gcc.godbolt.org/z/P4ozcd6oW

Related discussion: https://stackoverflow.com/q/78292459/7325599

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

* [Bug c++/114654] Alias template cannot be found
  2024-04-09 10:53 [Bug c++/114654] New: Alias template cannot be found fchelnokov at gmail dot com
@ 2024-04-09 12:20 ` ppalka at gcc dot gnu.org
  0 siblings, 0 replies; 2+ 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=114654

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ppalka at gcc dot gnu.org
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Patrick Palka <ppalka at gcc dot gnu.org> ---
dup

*** This bug has been marked as a duplicate of bug 92707 ***

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

end of thread, other threads:[~2024-04-09 12:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-09 10:53 [Bug c++/114654] New: Alias template cannot be found fchelnokov at gmail dot com
2024-04-09 12:20 ` [Bug c++/114654] " 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).