OSDN Git Service

/cp
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / variadic-unresolved.C
1 // PR c++/50086
2 // { dg-options -std=c++0x }
3
4 template<typename T> void tfun();
5 template<typename T> void fun1(T);
6 template<typename... Types> void fun2(Types... args);
7
8 int main()
9 {
10   fun1(tfun<int>); // ok
11   fun2(tfun<int>); // error: unresolved overloaded function type
12 }