Article View: comp.windows.interviews
Article #1672Bug in GCC-2.0 handling of virtual baseclasses (cc1plus abort)
From: Howard Wilkinson
Date: Thu, 19 Mar 1992 08:08
Date: Thu, 19 Mar 1992 08:08
34 lines
1805 bytes
1805 bytes
In attempting to get IV-3.0 running on a SONY news using Gcc-2.0 I
encountered a bug in the compiler. This bug is prompted by the following
simplified example of code. I cannot fathom what I need to
change to get the compiler to accept this code or if it is valid code.
The compiler fails with an abort inside an assertation in cp-cvt.c at
line 1188.
--------------------- Code follows ---------------------------------------
class ivResource {
public:
virtual ~ivResource ();
};
class StateVar {
public:
virtual ~StateVar();
};
class SharedName : public StateVar, virtual public ivResource {
};
class MemberSharedName : public SharedName {
};
class ButtonSharedName : public SharedName {
};
class UControl : virtual public ivResource {
};
class IBEditor {
public:
virtual ~IBEditor();
private:
UControl* _tab;
};
IBEditor::~IBEditor () {
delete _tab;
}
Technical Details
Message-ID:
<1098@sarah.coh-uk.UUCP>Path:
arc1-ca.pugleaf.net!sparky!uunet!ferkel.ucsb.edu!ucsbcsl!network.ucsd.edu!usc!rpi!bu2.bu.edu!spdcc!das-news.harvard.edu!husc-news.harvard.edu!hsdndev!rutgers!bionet!snorkelwacker.mit.edu!ai-lab!ai.mit.edu!gnulistsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113d02,b8d1a280349d0e98,start X-Google-Attributes: gid113d02,public X-Google-Thread: 101a2b,b8d1a280349d0e98,start X-Google-Attributes: gid101a2b,public X-Google-ArrivalTime: 1992-03-21 03:56:02 PST Path: arc1-ca.pugleaf.net!sparky!uunet!ferkel.ucsb.edu!ucsbcsl!network.ucsd.edu!usc!rpi!bu2.bu.edu!spdcc!das-news.harvard.edu!husc-news.harvard.edu!hsdndev!rutgers!bionet!snorkelwacker.mit.edu!ai-lab!ai.mit.edu!gnulists From: howard@cohtech.co.uk (Howard Wilkinson) Newsgroups: comp.windows.interviews,gnu.gcc.bug Subject: Bug in GCC-2.0 handling of virtual baseclasses (cc1plus abort) Keywords: Gcc-2.0 C++ Virtual Message-ID: <1098@sarah.coh-uk.UUCP> Date: 19 Mar 92 08:08:03 GMT Followup-To: poster Organization: Coherent Technology Ltd., Fareham, England Lines: 34 Approved: info-gnu@prep.ai.mit.edu To: bug-gcc@prep.ai.mit.edu