blob: 8b8ca9e312dc619c2736adb4d2149731841d5895 (
plain)
1
2
3
4
5
6
7
8
9
|
// { dg-options "-std=gnu++0x" }
template<class X, class Y, class... Z> X f(Y);
void g()
{
int i = f<int>(5.6);
int j = f(5.6); // { dg-error "no matching" }
f<void>(f<int, bool>);
f<void>(f<int>); // { dg-error "no matching" }
}
|