| 1 |
// { dg-do compile { target c++23 } } |
| 2 |
|
| 3 |
template<class T> |
| 4 |
struct A { |
| 5 |
A(T); |
| 6 |
template<class U> A(T, U); |
| 7 |
}; |
| 8 |
|
| 9 |
template<class T> |
| 10 |
struct B : A<const T> { |
| 11 |
using A<const T>::A; |
| 12 |
}; |
| 13 |
|
| 14 |
using type = decltype(B(0)); |
| 15 |
using type = decltype(B(0, 0)); |
| 16 |
using type = B<int>; |