🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Ron Guilmette Thu, 23 Feb 1989 20:35
BUG in G++ 1.33.0 - segfault on call to bad method
#1704
Author: Ron Guilmette
Date: Thu, 23 Feb 1989 20:35
23 lines
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();
}
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads