This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]