🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Ron Guilmette Wed, 15 Mar 1989 05:38
BUG in G++ 1.34.0
#1739
Author: Ron Guilmette
Date: Wed, 15 Mar 1989 05:38
33 lines
1421 bytes
The following code produces what seems to be a bogus error message.
Are methods allowed to be static?

---------------------------------------------------------------------
// Check that a class method may be declared to be static

#include "testinc.h"

class c {
public:
	static void method1 ();
};

int test ()
{
	c c_object;

	c_object.method1 ();
	return 0;
}

static void c::method1 ()
{
}
----------------------------------------------------------------------
g++ -Wall -Wwrite-strings -v -S x04.C
g++ version 1.34.0.1
 /usr/local/src/lib/1.34.0.1/sun3/gcc-cpp -+ -v -undef -D__GNU__ -D__GNUG__ -Dmc68000 -Dsun -Dunix -D__mc68000__ -D__sun__ -D__unix__ -Wall -D__HAVE_68881__ -Dmc68020 x04.C /tmp/cca20113.cpp
GNU CPP version 1.34.0.1
 /usr/local/src/lib/1.34.0.1/sun3/gcc-c++ /tmp/cca20113.cpp -quiet -dumpbase x04.C -Wall -Wwrite-strings -noreg -version -o x04.s
GNU C++ version 1.34.0.1 (68k, MIT syntax) compiled by GNU C version 1.33.
x04.C:7: sorry, not implemented: function declared static in class
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