| 1 |
// { dg-do compile { target c++20 } } |
| 2 |
// { dg-additional-options "-fconcepts" } |
| 3 |
|
| 4 |
template<typename T, typename T::type> |
| 5 |
concept C = true; |
| 6 |
|
| 7 |
template<C<0> T> class ct {}; |
| 8 |
|
| 9 |
struct S |
| 10 |
{ |
| 11 |
using type = int; |
| 12 |
}; |
| 13 |
|
| 14 |
template class ct<S>; |