This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Sujet: member operator of nested class template partial specialization bug
- To: egcs-bugs at egcs dot cygnus dot com
- Subject: Sujet: member operator of nested class template partial specialization bug
- From: Mathias Doreille <Mathias dot Doreille at imag dot fr>
- Date: Wed, 5 May 1999 13:41:40 +0200 (MET DST)
This program fails to compile with egcs-2.93.21 but is seems legal and
compile with egcs-2.91.66 (egcs-1.1.2 release).
Note that if the member operator is replaced by another operator this
also fails to compile and if it is replaced by a member function this
compiles.
Reading specs from/users/huron3/doreille/TOOLS/install-egcs-19990502-sparc/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.93.21/specs
gcc version egcs-2.93.21 19990502 (gcc2 ss-980929 experimental)
//==========================
template<class T>
struct a {
struct b {
T operator()();
};
};
template<class T>
T a<T>::b::operator()() { return T(0); }
template<> int a<int>::b::operator()() { return 1; }