summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/error1.C
blob: 751b3b75e0cb320123a15988bfc1438dbf9edca4 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/34395
// { dg-do compile }
// { dg-options "-std=c++0x" }

template<int... N> void foo (int... x[N])	// { dg-error "int \\\[N\\\]\\.\\.\\. x" }
{
  struct A
  {
    A () { x; }		// { dg-error "use of parameter from containing function" }
  };
}