// PR c++/65396 // { dg-do compile { target c++11 } } // Like defarg23.C, but for member functions. struct A { template void f(); template void g(); // { dg-message "original definition" } template void h(); }; template void A::f() { } template void A::g() { } // { dg-error "redefinition of default" } template void A::h() { static_assert(__is_same(T, char), ""); static_assert(__is_same(U, bool), ""); } int main() { A a; a.f(); a.g(); a.h(); }