gcc/testsuite/g++.dg/template/ttp39.C
raw| 1 | // PR c++/110566 |
| 2 | // { dg-do compile { target c++20 } } |
| 3 | |
| 4 | template<template<int N, int M> class> |
| 5 | struct A; |
| 6 | |
| 7 | template<class U> |
| 8 | struct B { |
| 9 | template<class T> |
| 10 | struct C { |
| 11 | template<template<auto X, auto Y> class TT> |
| 12 | using type = A<TT>; |
| 13 | }; |
| 14 | }; |
| 15 | |
| 16 | template struct B<int>::C<int>; |