// { dg-do compile { target c++11 } } template struct A { static void foo(){} }; template <> struct A { using foo = int; }; template void f(T t1) { A::foo(); } template void g(T t2) { /* if the comparing_specializations check breaks in cp_tree_equal case PARM_DECL, the error will incorrectly report A */ A::foo(); // { dg-error "dependent-name .A::foo" } } void h() { f(0); g('0'); }