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