Article View: gnu.g++.bug
Article #1913BUG in G++ 1.35.0- (test case b043)
From: Ron Guilmette
Date: Fri, 28 Apr 1989 17:44
Date: Fri, 28 Apr 1989 17:44
53 lines
2098 bytes
2098 bytes
(This error is different from the last one!)
G++ 1.35.0-/Sun3 SEGFAULTS when compiling the following source file.
----------------------------------------------------------------------
// Check that if a function is declared as non-inline that subsequent
// declarations/definitions must also be declared as non-inline.
void function_1 ();
inline void function_1 (); // ERROR
void function_2 ();
inline void function_2 () // ERROR
{
}
struct base {
void member_1 ();
inline void member_1 (); // ERROR
void member_2 ();
inline void member_2 () // ERROR
{}
void member_3 ();
void member_4 ();
};
inline void base::member_3 (); // ERROR
inline void base::member_3 () // possible error
{
}
inline 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 b043.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__ b043.C /tmp/cca07118.cpp
GNU CPP version 1.35.0-.0
/usr/local/src/src/g++/build/sun3/1.35-.0-.0/c++ /tmp/cca07118.cpp -quiet -dumpbase b043.C -Wall -Wwrite-strings -pedantic -ansi -noreg -version -o b043.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:
<8904281744.AA07156@riunite.aca.mcc.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!MCC.COM!rfgShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!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- (test case b043) Message-ID: <8904281744.AA07156@riunite.aca.mcc.com> Date: 28 Apr 89 17:44:26 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 53