[gnu.g++.bug] BUG in G++ 1.33.0 - segfault on call to bad method

rfg@MCC.COM (Ron Guilmette) (02/24/89)

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();
}