Annoying bug in g++ current (egcs-2.92.04 19980914) frontend

Theodore Papadopoulo Theodore.Papadopoulo@sophia.inria.fr
Wed Sep 16 09:00:00 GMT 1998


	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
 --------------------------------------------------------------------





More information about the Gcc-bugs mailing list