1 // { dg-do compile { target c++11 } } 2 // { dg-prune-output "invalid" } 3 4 template<int>struct A{}; f(U...)5template<class...U>void f(U...){ 6 A<sizeof...U> x; // { dg-error "surrounded by parentheses" } 7 } 8 9 10 template<int...> struct Indices; 11 template<class> struct Next_increasing_indices; 12 template<int...I> struct Next_increasing_indices<Indices<I...> > { 13 typedef Indices<I...,sizeof...I> type; // { dg-error "surrounded by parentheses" } 14 }; 15