🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#246
From: Mike Stump
Date: Mon, 13 Apr 1992 19:43
46 lines
2046 bytes
This problem should be fixed in the next release of gcc.

> Newsgroups: gnu.g++.bug
> From: earl@jade.ab.ca (Earl Locken)
> Message-Id: <EARL.92Apr10092454@jsi-bwd.jade.ab.ca>
> Organization: Jade Simulations International, Inc., Calgary, AB, Canada
> Date: Fri, 10 Apr 1992 16:24:54 GMT
> To: bug-g++@prep.ai.mit.edu
> Subject: g++ 2.1 on a sun3 dumps core on assigment to static member

>     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 
Technical Details
Message-ID: <9204131943.AA25621@cygnus.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cygnus.com!mrs

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cygnus.com!mrs
From: mrs@cygnus.com (Mike Stump)
Subject: Re:  g++ 2.1 on a sun3 dumps core on assigment to static member
Message-ID: <9204131943.AA25621@cygnus.com>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Mon, 13 Apr 1992 19:43:17 GMT
Approved: bug-g++@prep.ai.mit.edu
Lines: 47