aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/error1.C
blob: 33557f2f80b20d9b9f4391f15439fed882c957df (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/34395
// { dg-do compile { target c++11 } }

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