Article View: gnu.g++.bug
Article #1704BUG in G++ 1.33.0 - segfault on call to bad method
From: Ron Guilmette
Date: Thu, 23 Feb 1989 20:35
Date: Thu, 23 Feb 1989 20:35
23 lines
963 bytes
963 bytes
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();
}
Technical Details
Message-ID:
<8902232035.AA01686@riunite.aca.mcc.com>Path:
arc1-ca.pugleaf.net!utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!MCC.COM!rfgShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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