This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Annoying bug in g++ current (egcs-2.92.04 19980914) frontend
- To: egcs-bugs at cygnus dot com
- Subject: Annoying bug in g++ current (egcs-2.92.04 19980914) frontend
- From: Theodore Papadopoulo <Theodore dot Papadopoulo at sophia dot inria dot fr>
- Date: Wed, 16 Sep 1998 16:52:41 +0200
- Cc: Jose dot Gomes at sophia dot inria dot fr
IMHO, the following code should compile...
template <class T>
class B {
typedef T Real;
};
template <class Real>
class A : B<Real> {
typedef Real type;
};
mururoa->/u/corse/2/robotvis/egcs2.6/bin/g++ test2.C
test2.C:9: re-using name of template parameter `Real' in this scope
test2.C:7: previously declared here `class Real'
It works fine with the 1.1 release. Am I wrong to consider this a bug?
Thank's lot,
Theo.
--------------------------------------------------------------------
Theodore Papadopoulo
Email: Theodore.Papadopoulo@sophia.inria.fr Tel: (33) 04 92 38 76 01
--------------------------------------------------------------------