[gnu.g++.bug] BUG in G++ 1.34.0 - abort

rfg@MCC.COM (Ron Guilmette) (03/11/89)

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