🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Ron Guilmette Fri, 09 Jun 1989 22:57
BUG in G++ 1.35.0 (segfault) (b076)
#2082
Author: Ron Guilmette
Date: Fri, 09 Jun 1989 22:57
26 lines
947 bytes
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
}
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