Thread View: gnu.g++.bug
1 messages
1 total messages
Started by Ron Guilmette
Wed, 03 May 1989 21:36
BUG in G++ 1.35-.0- (b048)
Author: Ron Guilmette
Date: Wed, 03 May 1989 21:36
Date: Wed, 03 May 1989 21:36
87 lines
2919 bytes
2919 bytes
The following source file causes G++ 1.35-.0-/Sun3 to SEGFAULT.
-----------------------------------------------------------------------
// Check that it is illegal to declare unary operators with
// more than one formal argument (for global operators) or more
// than zero formal arguments (for member operators). Check
// type conversions as well as normal operators.
struct st {
int member;
};
// Unary + could be binary
//int operator + (st st1, st st2);
// unary - could be binary
//int operator - (st st1, st st2);
// unary & could be binary
//int operator & (st st1, st st2);
// unary * could be binary
//int operator * (st st1, st st2);
int operator ~ (st st1, st st2); // ERROR
int operator ! (st st1, st st2); // ERROR
int operator ++ (st st1, st st2); // ERROR
int operator -- (st st1, st st2); // ERROR
int operator ( ) (st st1, st st2); // ERROR
int operator -> (st st1, st st2); // ERROR
void* operator new (st st1, st st2); // ERROR
void operator delete (st st1, st st2); // ERROR
int operator int (st st1, st st2); // ERROR
st operator st (st st1, st st2); // ERROR
struct base {
// Unary + could be binary
//int operator + (st st2);
// unary - could be binary
//int operator - (st st2);
// unary & could be binary
//int operator & (st st2);
// unary * could be binary
//int operator * (st st2);
int operator ~ (st st2); // ERROR
int operator ! (st st2); // ERROR
int operator ++ (st st2); // ERROR
int operator -- (st st2); // ERROR
int operator ( ) (st st2); // ERROR
int operator -> (st st2); // ERROR
void* operator new (st st2); // ERROR
void operator delete (st st2); // ERROR
int operator int (st st2); // ERROR
st operator st (st st2); // ERROR
base operator base (st st2); // 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/ -Wall -Wwrite-strings -g -S -v b048.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__ -Dmc68000 -Dsun -Dunix -D__mc68000__ -D__sun__ -D__unix__ -Wall -D__HAVE_68881__ -Dmc68020 b048.C /tmp/cca20861.cpp
GNU CPP version 1.35.0-.0
/usr/local/src/src/g++/build/sun3/1.35-.0-.0/c++ /tmp/cca20861.cpp -quiet -dumpbase b048.C -Wall -Wwrite-strings -noreg -version -G -o b048.s
/usr/local/src/src/g++/build/sun3/1.35-.0-.0/g++: Program c++ got fatal signal 11.
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