🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Pure virtual destructors!

#1258
From: tlukka
Date: Mon, 14 Dec 1992 18:39
34 lines
728 bytes
Pure virtual destructors dump core on HP-PA1.1 HP-UX 8.07
Running the sample code won't succeed.
Compiles ok, though.

	TJL

------ clip clip ---- sample code


class A
{
	int a;
public:	
	A() {}
	virtual ~A()=0;
};

class B:public A
{
	int b;
public:
	B() {}
	virtual ~B()
	{
	}
};


int main()
{
	B a;
}

---------------------
Technical Details
Message-ID: <199212141639.AA20454@lk-hp-16.hut.fi>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!vinkku.hut.fi!tlukka

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!vinkku.hut.fi!tlukka
From: tlukka@vinkku.hut.fi
Subject: Pure virtual destructors!
Message-ID: <199212141639.AA20454@lk-hp-16.hut.fi>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Mon, 14 Dec 1992 18:39:29 GMT
Approved: bug-g++@prep.ai.mit.edu
Lines: 35