🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Ron Guilmette Wed, 15 Mar 1989 05:40
BUG in G++ 1.34.0
#1740
Author: Ron Guilmette
Date: Wed, 15 Mar 1989 05:40
33 lines
1440 bytes
This chunk of code also produces what appears to be a bogus error
message.  Are methods allowed to be extern?

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

#include "testinc.h"

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

int test ()
{
	c c_object;

	c_object.method1 ();
	return 0;
}

extern void c::method1 ()
{
}
------------------------------------------------------------------------------
g++ -Wall -Wwrite-strings -v -S x05.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 x05.C /tmp/cca20136.cpp
GNU CPP version 1.34.0.1
 /usr/local/src/lib/1.34.0.1/sun3/gcc-c++ /tmp/cca20136.cpp -quiet -dumpbase x05.C -Wall -Wwrite-strings -noreg -version -o x05.s
GNU C++ version 1.34.0.1 (68k, MIT syntax) compiled by GNU C version 1.33.
x05.C:7: storage class specified for structure field `method1'
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