Thread View: gnu.g++.bug
1 messages
1 total messages
Started by "Douglas C. Schmidt"
Tue, 01 Nov 1988 02:58
g++ dies on sparc
Author: "Douglas C. Schmidt"
Date: Tue, 01 Nov 1988 02:58
Date: Tue, 01 Nov 1988 02:58
54 lines
1709 bytes
1709 bytes
Hi,
The following code causes a segmentation fault on the sparc, running
g++ 1.27 ( this only occurs when stream.h is included ) :
----------------------------------------
#include <stream.h>
class Foo {
public:
virtual int Append () {}
virtual int Prepend () {}
};
class Bar : public Foo {
private:
int Append () {}
public:
};
main () {
Bar Foobar;
Foobar.Append ();
Foobar.Prepend ();
}
----------------------------------------
Here are the diagnostics:
----------------------------------------
Script started on Mon Oct 31 18:45:43 1988
[~ ] [/cd/ua/schmidt]
[7m[6:45pm][m [crimee] [1]..: g++ -v test.C
g++ version 1.27.0
echo use .cc filename extension!
use .cc filename extension!
/usr/public/lib/g++/gcc-cpp+ -v -I/cd/ua/schmidt/include/ -undef -D__GNU__ -D__GNUG__ -Dsparc -Dsun -Dunix test.C /tmp/cca16498.cpp
GNU CPP version 1.27.0
/usr/public/lib/g++/gcc-c++ /tmp/cca16498.cpp -quiet -dumpbase test.C -fchar-charconst -noreg -version -o /tmp/cca16498.s
GNU C++ version 1.27.0 (sparc) compiled by GNU C version 1.28.
:889264: /usr/public/g++: Program c++ got fatal signal 11.
[~ ] [/cd/ua/schmidt]
exit
script done on Mon Oct 31 18:48:39 1988
----------------------------------------
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