🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Ron Guilmette Fri, 10 Mar 1989 19:42
BUG in G++ 1.34.0 - fatal abort
#1718
Author: Ron Guilmette
Date: Fri, 10 Mar 1989 19:42
30 lines
1535 bytes
The following source code causes G++ 1.34.0/Sun3 to abort.  The compilation
log is shown below the code.

Cut here (aborts/x04.cc)
-----------------------------------------------------------------------------
/*
Description - check that if a class type has a protected default constructor, and
		if a static object of that class type needs to be constructed, the
		compiler does not abort.

		This test fails on G++ 1.34.0, and the compiler aborts.
*/

class base
{
protected:
    base();
};
  
base static_base_object;
------------------------------------------------------------------------------
g++ -v -S x04.cc
g++ version 1.34.0.0
 /usr/local/src/lib/1.34.0.0/sun3/gcc-cpp -+ -v -undef -D__GNU__ -D__GNUG__ -Dmc68000 -Dsun -Dunix -D__mc68000__ -D__sun__ -D__unix__ -D__HAVE_68881__ -Dmc68020 x04.cc /tmp/cca06594.cpp
GNU CPP version 1.34.0.0
 /usr/local/src/lib/1.34.0.0/sun3/gcc-c++ /tmp/cca06594.cpp -quiet -dumpbase x04.cc -noreg -version -o x04.s
GNU C++ version 1.34.0.0 (68k, MIT syntax) compiled by GNU C version 1.33.
Failed assertion visibility != visibility_protected at line 3290 of `cplus-class.c'.
Program c++ got fatal signal 6.
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