aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/auto31.C
blob: 2c74b72df4a376c5c3a3c57e925ad40d68b54512 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/51416
// { dg-options "-std=c++0x" }

template<typename T, typename... U> void foo(T, U... u)
{
  auto foo(u...);		// { dg-error "auto" }
}

void bar()
{
  foo(0);
}