aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic118.C
blob: ee742ebb9463d3028b9119e3b9e036acbd1446f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
// This should fail deduction, before it produces a candidate.
// { dg-do compile { target c++11 } }

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

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