| 1 |
// PR c++/60218 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
|
| 4 |
template<typename...> struct A {}; |
| 5 |
|
| 6 |
template<typename T> struct B |
| 7 |
{ |
| 8 |
typedef A<__bases(T)...> C; // { dg-error "incomplete type" } |
| 9 |
}; |
| 10 |
|
| 11 |
struct X {}; |
| 12 |
struct Y : X* {}; // { dg-error "expected" } |
| 13 |
|
| 14 |
B<Y> b; |