🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #1927

BUG in G++ 1.35.0-

#1927
From: Ron Guilmette
Date: Fri, 28 Apr 1989 17:38
53 lines
2080 bytes
When compiled with G++ 1.35.0-/Sun3, the following source file causes
the compiler to SEGFAULT.

----------------------------------------------------------------------
// Check that if a function is declared as inline that subsequent
// declarations/definitions must also be declared inline.

inline void function_1 ();

void function_1 ();			// ERROR

inline void function_2 ();

void function_2 ()			// ERROR
{
}

struct base {
	inline void member_1 ();

	void member_1 ();		// ERROR

	inline void member_2 ();

	void member_2 ()		// ERROR
	{}

	inline void member_3 ();
	inline void member_4 ();
};

void base::member_3 ();			// ERROR

void base::member_3 ()			// possible error
{
}

void base::member_4 ()			// ERROR
{
}
-----------------------------------------------------------------------
/usr/local/src/src/g++/build/sun3/1.35-.0-.0/g++ -B/usr/local/src/src/g++/build/sun3/1.35-.0-.0/ -ansi -pedantic -Wall -Wwrite-strings -S -v b042.C
g++ version 1.35.0-.0
 /usr/local/src/src/g++/build/sun3/1.35-.0-.0/cpp -+ -v -undef -D__GNU__ -D__GNUG__ -T -D__STRICT_ANSI__ -D__mc68000__ -D__sun__ -D__unix__ -pedantic -Wall -D__HAVE_68881__ b042.C /tmp/cca07041.cpp
GNU CPP version 1.35.0-.0
 /usr/local/src/src/g++/build/sun3/1.35-.0-.0/c++ /tmp/cca07041.cpp -quiet -dumpbase b042.C -Wall -Wwrite-strings -pedantic -ansi -noreg -version -o b042.s
/usr/local/src/src/g++/build/sun3/1.35-.0-.0/g++: Program c++ got fatal signal 11.

// Ron Guilmette  -  MCC  -  Experimental Systems Kit Project
// 3500 West Balcones Center Drive,  Austin, TX  78759  -  (512)338-3740
// ARPA: rfg@mcc.com
// UUCP: {rutgers,uunet,gatech,ames,pyramid}!cs.utexas.edu!pp!rfg
Technical Details
Message-ID: <8904281738.AA07066@riunite.aca.mcc.com>
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!csd4.milw.wisc.edu!mailrus!tut.cis.ohio-state.edu!MCC.COM!rfg

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!csd4.milw.wisc.edu!mailrus!tut.cis.ohio-state.edu!MCC.COM!rfg
From: rfg@MCC.COM (Ron Guilmette)
Newsgroups: gnu.g++.bug
Subject: BUG in G++ 1.35.0-
Message-ID: <8904281738.AA07066@riunite.aca.mcc.com>
Date: 28 Apr 89 17:38:57 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 53