🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #231

g++ 2.1 on a sun3 dumps core on assigment to static member

#231
From: Earl Locken
Date: Fri, 10 Apr 1992 16:24
39 lines
1698 bytes
    G++ dumps core when trying to compile the following code.  The
code compiles using Sun's C++ 2.1 compiler.

	// This may look like C code, but it is really -*- C++ -*-
	
	class base {
	      protected:
		double Sim_time;
	
	      public:
		base() { Sim_time = -1.0;};
		base(double d) { Sim_time = d;};
	
		static base ZERO;
	};
	
	base base::ZERO = base(0.0);
	
     Here are the messages from the GNU 2.1 compiler.

	g++ -v -c base.c
	Reading specs from /usr/local/lib/gcc-lib/sun3-sunos4.1.1/2.1/specs
	gcc version 2.1
	 /usr/local/lib/gcc-lib/sun3-sunos4.1.1/2.1/cpp -lang-c++ -v \
		-undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus \
		-Dmc68000 -Dsun -Dunix -D__mc68000__ -D__sun__ \
		-D__unix__ -D__mc68000 -D__sun -D__unix \
		-D__HAVE_68881__ -D__mc68020__ -Dmc68020 base.c \
		/usr/tmp/cca10731.i 
	GNU CPP version 2.1 (68k, MIT syntax)
	 /usr/local/lib/gcc-lib/sun3-sunos4.1.1/2.1/cc1plus \
		/usr/tmp/cca10731.i -quiet -dumpbase base.cc -version \
		-o /usr/tmp/cca10731.s 
	GNU C++ version 2.1 (68k, MIT syntax) compiled by GNU C version 2.1.
	/usr/local/bin/gcc: Internal compiler error: program cc1plus \
		got fatal signal 11 
-- 
Earl Locken						earl@jade.ab.ca
Jade Simulations International
Technical Details
Message-ID: <EARL.92Apr10092454@jsi-bwd.jade.ab.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!jade.ab.CA!earl

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!jade.ab.CA!earl
From: earl@jade.ab.CA (Earl Locken)
Subject: g++ 2.1 on a sun3 dumps core on assigment to static member
Message-ID: <EARL.92Apr10092454@jsi-bwd.jade.ab.ca>
Sender: gnulists@ai.mit.edu
Organization: Jade Simulations International, Inc., Calgary, AB, Canada
Distribution: gnu
Date: Fri, 10 Apr 1992 16:24:54 GMT
Approved: bug-g++@prep.ai.mit.edu
Lines: 40