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

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