1 // PR c++/48665 2 3 #include <typeinfo> 4 extern "C" void abort(); 5 f()6template<class A,class B> void f() { 7 if (typeid(A)==typeid(B)) abort(); // { dg-error "qualified function" } 8 if (typeid(A*)==typeid(B*)) abort(); // { dg-error "qualified function" } 9 } main()10int main() { 11 f<void()const,void()>(); 12 } 13