[gnu.g++.bug] Bug in 1.27.0 using typeof

rfg@nsc.nsc.com (Ron Guilmette) (10/01/88)

SUMMARY
	With G++ 1.27.0 there seems to be a problem in using typeof() in the
	declaration of a class object.

	I get the compile-time message:

	bug1.cc:16: bad parameter list specification for function 'object2'

CONFIGURATION
	G++ 1.27.0 (with gcc 1.27 files)

	I am running on an Encore-Multimax (using System V.3).

	ns32k.md	=>	md
	output-ns32k.c	=>	aux-output.c
	tm-encore.h	=>	tm.h
	config-gnx.h	=>	config.h

	I have many small patches installed for System V and/or Genix.

EXAMPLE
	class class1 {
		int i;
	public:
		class1(int ii);
	};
	
	class1::class1(int ii)
	{
		i = ii;
	}
	
	class1 object1 (1);
	
	void func1 ()
	{
		typeof(object1) object2 (2);	//  *** error flagged here
	
	}

//Ron Guilmette
//National SemiConductor, 1135 Kern Ave. M/S 7C-266; Sunnyvale, CA 94086
//Internet: rfg@nsc.nsc.com   or   amdahl!nsc!rfg@ames.arc.nasa.gov
//Uucp: ...{pyramid,sun,amdahl,apple}!nsc!rfg