| 1 |
// { dg-do compile { target c++20 } } |
| 2 |
|
| 3 |
template <typename T> struct A { }; |
| 4 |
template <typename T> concept int_type = __is_same_as (T, int); |
| 5 |
template <int_type T> using intA = A<T>; |
| 6 |
|
| 7 |
template <template <typename T> class TT> struct B { |
| 8 |
TT<char> tt; // { dg-error "" } |
| 9 |
}; |
| 10 |
B<intA> b; |