Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/error1.C

raw
1 // PR c++/34395
2 // { dg-do compile { target c++11 } }
3
4 void f(...);
5 template<int... N> void foo (int... x[N]) // { dg-message "declared here" }
6 {
7 struct A
8 {
9 A () { f(x...); } // { dg-error "use of parameter from containing function" }
10 };
11 }
12
13 int main()
14 {
15 int ar[4];
16 foo<4>(ar);
17 }