| 1 |
// PR c++/51148 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
|
| 4 |
template<typename... Types> |
| 5 |
struct S |
| 6 |
{}; |
| 7 |
|
| 8 |
template<typename... Types> |
| 9 |
struct T |
| 10 |
{ |
| 11 |
friend class S<Types>; // { dg-error "parameter packs not expanded" } |
| 12 |
}; |
| 13 |
|
| 14 |
int main() |
| 15 |
{} |