This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
bug in g++ current (egcs-2.92.04 19980914) frontend
- To: egcs-bugs at cygnus dot com, Theodore Papadopoulos <Theodore dot Papadopoulo at sophia dot inria dot fr>
- Subject: bug in g++ current (egcs-2.92.04 19980914) frontend
- From: Jose Gomes <Jose dot Gomes at sophia dot inria dot fr>
- Date: Thu, 17 Sep 1998 09:46:31 +0200
The member template specialization in the following code
works fine with the 1.1 release but generates an error with
egcs-2.92.04 19980914 :
template <class T>
class A {
template <class X> void f(X);
};
template <class T>
template <class X>
void A<T>::f(X) {}
template <class T>
template<>
void A<T>::f(int) {}
atlantis-718% $ROBOTVIS/egcs2.6/bin/g++ -c /tmp/z3.C
/tmp/z3.C:13: enclosing class templates are not explicit specialized
Thank's a lot,
Jose.
--
Jose.Gomes@sophia.inria.fr Tel. +33 4 92 38 76 48