Path: 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 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 }