Path: utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!MCC.COM!rfg From: rfg@MCC.COM (Ron Guilmette) Newsgroups: gnu.g++.bug Subject: BUG in G++ 1.33.0 - segfault on call to bad method Message-ID: <8902232035.AA01686@riunite.aca.mcc.com> Date: 23 Feb 89 20:35:42 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 23 The following short code fragment causes G++ 1.33.0 to segfault. This is on a Sun3, under SunOS 3.something. /* ------------------------ segfaults/x05.cc ------------------------- */ /* Description - check that if a class is declared and then subsequently a method is defined for that class which was *not* present in the original class declaration, that a call to the extra (invalid) method for the class produces an appropriate compile-time error. */ struct c1 { }; int c1::method_1 () { } int func () { c1 c1_object; c1_object.method_1(); }