// { dg-do assemble } // // Copyright (C) 2000 Free Software Foundation, Inc. // Contributed by Nathan Sidwell 10 Aug 2000 // bug 371 We failed to subst explicit template args before trying to // deduce the template. namespace N { enum E { e0 }; template< E e > void nf(); } template< N::E e > void gf(); struct X { template void xfn (); template static void sfn (); }; template < class C > void tf(C *ptr) { N::nf(); gf(); ptr->X::xfn (); ptr->C::template xfn (); ptr->template xfn (); ptr->X::sfn (); ptr->C::template sfn (); ptr->template sfn (); X::sfn (); C::template sfn (); } void f(X *ptr) { ptr->xfn (); tf(ptr); }