| 1 |
// { dg-do compile { target c++17 } } |
| 2 |
|
| 3 |
template<typename T> |
| 4 |
struct Base |
| 5 |
{ |
| 6 |
protected: |
| 7 |
using type = T; |
| 8 |
}; |
| 9 |
|
| 10 |
template<typename T> |
| 11 |
struct Cont : Base<T> |
| 12 |
{ |
| 13 |
using argument_type = typename Base<T>::type; |
| 14 |
|
| 15 |
Cont(T, argument_type) { } |
| 16 |
}; |
| 17 |
|
| 18 |
Cont c(1, 1); |