/cp
[official-gcc.git] / gcc / testsuite / g++.dg / inherit / pr57942.C
blob580e9ecd2427a73263dca663294f49f8f44ef26f
1 // PR c++/57942
3 template<typename T> struct S { typename T::error type; };
4 struct X {};
5 void f(S<int>*);
6 void f(...);
7 void g() { f((X*)0); }
8 struct Y;
9 void h() { f((Y*)0); }