🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by ojr Tue, 29 Sep 1992 17:20
Bug in handling erronous C++ code ?
#1230
Author: ojr
Date: Tue, 29 Sep 1992 17:20
27 lines
1314 bytes
Following short program causes cpp1 to dump core.

--------------------------------
class Time;
class TimeNote;

class SvTime
{
public:
    static TimeNote *time_events = 0;
};

SvTime CurrentTime = {0};
-----------------------------------
Error message etc:

gcc -v ini_bug.cc
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.2.2/specs
gcc version 2.2.2
 /usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.2.2/cpp -lang-c++ -v -undef -D__GNU
C__=2 -D__GNUG__=2 -D__cplusplus -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__
unix__ -D__sparc -D__sun -D__unix ini_bug.cc /usr/tmp/cca06966.i
GNU CPP version 2.2.2 (sparc)
 /usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.2.2/cc1plus /usr/tmp/cca06966.i -qu
iet -dumpbase ini_bug.cc -version -o /usr/tmp/cca06966.s
GNU C++ version 2.2.2 (sparc) compiled by GNU C version 2.2.2.
gcc: Internal compiler error: program cc1plus 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