Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/vt-51314.C

raw
1 // { dg-do compile { target c++11 } }
2 // { dg-prune-output "invalid" }
3
4 template<int>struct A{};
5 template<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 };