Thread View: gnu.g++.bug
1 messages
1 total messages
Started by Ron Guilmette
Fri, 28 Apr 1989 17:38
BUG in G++ 1.35.0-
Author: Ron Guilmette
Date: Fri, 28 Apr 1989 17:38
Date: Fri, 28 Apr 1989 17:38
53 lines
2080 bytes
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
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