Failure of 2371.C

Manfred Hollstein manfred@s-direktnet.de
Sun Feb 15 11:52:00 GMT 1998


On Sun, 15 February 1998, 09:15:42, martin@mira.isdn.cs.tu-berlin.de wrote:

 > Is anybody else seeing that compilation of
 > gcc/testsuite/g++.old-deja/g++.jason/2371.C fails? Or is it my local
 > modifications that broke it? The symptom is that the compilation won't
 > terminate.
 > 
 > I've reduced that to a minimal example, which reads
 > 
 > template<class T>
 > class ListS {
 > public:
 >     class Vix {
 >     public:
 > 	friend int operator!=(const Vix& x1, const Vix& x2)
 > 	    { return 0; }
 >     };
 > };
 > class test {
 > };
 > template class ListS<test>;
 > 
 > The problem is that pushdecl () is called twice for
 > __ne__H1Z4test_RCQ2t5ListS1ZX013VixT0_i while in the global binding,
 > which will produce a cyclic list for the names in that binding. One
 > copy is produced when iterating over the friends of Vix, and the other
 > when iterating over the friends of ListS.
 > 
 > Anybody else seeing this?

No problems here on i586-linux-gnulibc1 with egcs from CVS last updated on
1998/02/15 10:20:28 MET.

Manfred



More information about the Gcc mailing list