🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Ron Guilmette Fri, 30 Sep 1988 18:22
Bug in 1.27.0 using typeof() in a class object declaration
#1466
Author: Ron Guilmette
Date: Fri, 30 Sep 1988 18:22
45 lines
1360 bytes
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads