[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / crash106.C
blob8d9726999003514faed477005c6eba87447674fc
1 // PR c++/47974
3 typedef double T;
5 struct A
7   template<T> void foo(); // { dg-error "type" }
8 };
10 template<T N = 0, void (A::*)() = &A::foo<N> > struct B {}; // { dg-error "type|declared" }
12 B<> b; // { dg-message "non-type" }
14 // { dg-prune-output "(could not convert|no matches)" }