aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic-unresolved.C
blob: 263640dd03911547ec0c8bf74ca1f8c64a9578db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/50086
// { dg-do compile { target c++11 } }

template<typename T> void tfun();
template<typename T> void fun1(T);
template<typename... Types> void fun2(Types... args);

int main()
{
  fun1(tfun<int>); // ok
  fun2(tfun<int>); // error: unresolved overloaded function type
}