summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/vt-35023.C
blob: 9db20503e7ef43323d9167c721fd9d9d4849413d (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-options "-std=c++0x" }
template<typename... T> int foo()
{
  T t; // { dg-error "parameter packs|T" }
  return t;
}

void bar()
{
  foo<int>();
}