gcc/testsuite/g++.dg/cpp0x/variadic170.C
raw| 1 | // PR c++/71451 |
| 2 | // { dg-do compile { target c++11 } } |
| 3 | |
| 4 | template < int > struct A; |
| 5 | |
| 6 | template < typename ... T > |
| 7 | struct B |
| 8 | { |
| 9 | template < typename A < T::value >::type > void foo (); // { dg-error "parameter packs" } |
| 10 | }; |
| 11 | |
| 12 | int main () |
| 13 | { |
| 14 | B < int > t; |
| 15 | t.foo (); |
| 16 | return 0; |
| 17 | } |