🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #1718

BUG in G++ 1.34.0 - fatal abort

#1718
From: 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.
Technical Details
Message-ID: <8903101942.AA06622@riunite.aca.mcc.com>
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!MCC.COM!rfg

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!MCC.COM!rfg
From: rfg@MCC.COM (Ron Guilmette)
Newsgroups: gnu.g++.bug
Subject: BUG in G++ 1.34.0 - fatal abort
Message-ID: <8903101942.AA06622@riunite.aca.mcc.com>
Date: 10 Mar 89 19:42:56 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 30