Article View: gnu.g++.bug
Article #2082BUG in G++ 1.35.0 (segfault) (b076)
From: Ron Guilmette
Date: Fri, 09 Jun 1989 22:57
Date: Fri, 09 Jun 1989 22:57
26 lines
947 bytes
947 bytes
The following code causes G++ 1.35.0/Sun3 to segfault.
--------------------------------------------------------------
// Check that if a function is *not* declared to be static
// in a given base class that it may not be declared to be
// static in any class derived from the given base class.
//
// This causes G++ 1.35.0 to segfault.
struct base
{
virtual void member();
};
struct derived : public base
{
static void member(); // ERROR
};
class derived *derived_ptr;
void test ()
{
derived_ptr->member(); // Possible error
}
Technical Details
Message-ID:
<8906092257.AA14207@pink.aca.mcc.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!MCC.COM!rfgShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!MCC.COM!rfg From: rfg@MCC.COM (Ron Guilmette) Newsgroups: gnu.g++.bug Subject: BUG in G++ 1.35.0 (segfault) (b076) Message-ID: <8906092257.AA14207@pink.aca.mcc.com> Date: 9 Jun 89 22:57:56 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 26