The bug at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33911 has the answer, it is a g++ bug but it have a simple work around the version bellow works as expected :
==== class a { public: template <typename T> void __attribute__ ((deprecated)) foo(T i); }; template <typename T> void a::foo(T i) { } int main(int argc, const char *argv[]) { a b; b.foo<int>(2); return 0; } ==== _______________________________________________ help-gplusplus mailing list help-gplusplus@gnu.org https://lists.gnu.org/mailman/listinfo/help-gplusplus