🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

BUG in G++ 1.34.0 - abort

#1719
From: Ron Guilmette
Date: Fri, 10 Mar 1989 19:48
35 lines
1745 bytes
The following source code causes G++ 1.34.0/Sun3 to abort.  The log
of the compilation follows the code.

Cut here
-------------------------------------------------------------------------
/*
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.


// Ron Guilmette  -  MCC  -  Experimental (parallel) Systems Kit Project
// 3500 West Balcones Center Drive,  Austin, TX  78759  -  (512)338-3740
// ARPA: rfg@mcc.com
// UUCP: {rutgers,uunet,gatech,ames,pyramid}!cs.utexas.edu!pp!rfg
Technical Details
Message-ID: <8903101948.AA06649@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 - abort
Message-ID: <8903101948.AA06649@riunite.aca.mcc.com>
Date: 10 Mar 89 19:48:40 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 35