🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Nested class destructor bug (2.2.2?)

#2
From: I.A.Utting
Date: Wed, 28 Oct 1992 03:01
22 lines
909 bytes
The following causes cc1plus to SEGV, with:
gcc: Internal compiler error: program cc1plus got fatal signal 11

I can only confirm this happening with gcc.xtar.Z from interviews.stanford.edu,
I no longer have a vanilla 2.2.2 to check against.

If the destructor body is incorporated in the class definition, all is well.

----------
struct X {
	struct Y {
		int y;
		Y(int t = 0) { y = t; }
		~Y();
	};
};

X::Y::~Y() { y = 0; }
----------

Ian.
Technical Details
Message-ID: <33@larch.ukc.ac.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ukc.ac.UK!iau

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ukc.ac.UK!iau
From: iau@ukc.ac.UK (I.A.Utting)
Subject: Nested class destructor bug (2.2.2?)
Message-ID: <33@larch.ukc.ac.uk>
Sender: gnulists@ai.mit.edu
Organization: Computing Lab, University of Kent at Canterbury, UK.
Distribution: gnu
Date: Wed, 28 Oct 1992 03:01:22 GMT
Approved: bug-g++@prep.ai.mit.edu
Lines: 23