1// { dg-do compile } 2 3// Origin: jhbrown@bluefinrobotics.com 4 5// PR c++/13635: ICE explicit specialization of member function template 6 7template <class foo> 8class bar { 9public: 10 template <class baz> 11 int func(baz *x); 12}; 13 14template <> 15template <class baz> 16int bar<double>::func(baz *x) { return 5;} 17 18template <> 19template <> 20int bar<double>::func(int *x) { return 5;} 21