summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/variadic118.C
blob: 43bf9bab21327d9636e9470e7c4971e544e8df59 (plain)
1
2
3
4
5
6
7
8
9
10
11
// This should fail deduction, before it produces a candidate.
// { dg-options -std=c++0x }

template <class... T>
void f(T... ts);		// { dg-message "deduction" }

struct B { };
int main()
{
  f<int>(B(), 1);		// { dg-error "" }
}