c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / overload6.C
blob1fbee0501de9f7f083142f299d82f7d694ab0c42
1 // PR c++/107461
2 // { dg-do compile { target c++11 } }
4 template<class T> T f();
6 template<class> struct A { };
8 template<class T> struct B {
9   template<class U, class = A<decltype(f<T>()(U()))>>
10   static void g(U);
13 int main() {
14   B<int> b;
15   B<void(*)(int)>::g(0); // { dg-bogus "no match" }