// PR c++/65396 // { dg-do compile { target c++11 } } template void f(); template void f(); template void g(); // { dg-message "original definition" } template void g(); // { dg-error "redefinition of default" } template void h(); template void h() { static_assert(__is_same(T, char), ""); static_assert(__is_same(U, bool), ""); } int main() { f(); g(); h(); }