internal compiler error

Mark Johnstone markj@ibmoto.com
Tue Jan 20 09:03:00 GMT 1998


Hello all,

The following simple program generates an internal compiler error in
both 1.0.1 and the 980115 snapshot:

#include <stddef.h>	// need this for offsetof macro, NULL & size_t defines

class CapData;

template <class T_Type> class NewBlocks
{
  private:

    T_Type * next;
    static const char * NewBlocks<T_Type>::static_tag_string;

  public:

  // removed for clarity
    
};

class CapData : public NewBlocks<CapData>
{
  private:
    CapData( const CapData& cd )  {}		// block copy constructor
    CapData& operator=( const CapData& cd)  { return *this; }
    CapData() : next(NULL), shape_id(0), cap_val(0) {}

    int shape_id;
    float cap_val;
    CapData * next;

  public:
    float  & asgnCapVal()	{ return cap_val; }
    float capVal() const	{ return cap_val; }			
    int   id()     const	{ return shape_id;}
};

int  main( int argc, char * argv[] )
{

    return 0;
}


Here is the message:

$  g++ -v test.C
Reading specs from /home/markj/lib/gcc-lib/rs6000-ibm-aix3.2.5/egcs-2.90.23/specs
gcc version egcs-2.90.23 980102 (egcs-1.0.1 release)
 /home/markj/lib/gcc-lib/rs6000-ibm-aix3.2.5/egcs-2.90.23/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=90 -D_IBMR2 -D_POWER -D_AIX -D_AIX32 -D_IBMR2 -D_POWER -D_AIX -D_AIX32 -Asystem(unix) -Asystem(aix) -Acpu(rs6000) -Amachine(rs6000) -D__EXCEPTIONS -D__CHAR_UNSIGNED__ -D_ARCH_PWR test.C /home/markj/tmp/ccbjE7ia.ii
GNU CPP version egcs-2.90.23 980102 (egcs-1.0.1 release)
#include "..." search starts here:
#include <...> search starts here:
 /home/markj/include/g++
 /usr/local/include
 /home/markj/rs6000-ibm-aix3.2.5/include
 /home/markj/lib/gcc-lib/rs6000-ibm-aix3.2.5/egcs-2.90.23/include
 /usr/include
End of search list.
 /home/markj/lib/gcc-lib/rs6000-ibm-aix3.2.5/egcs-2.90.23/cc1plus /home/markj/tmp/ccbjE7ia.ii -quiet -dumpbase test.cc -version -o /home/markj/tmp/ccbjE7ia.s
GNU C++ version egcs-2.90.23 980102 (egcs-1.0.1 release) (rs6000-ibm-aix3.2.5) compiled by GNU C version egcs-2.90.23 980102 (egcs-1.0.1 release).
test.C:19: Internal compiler error.
test.C:19: Please submit a full bug report to `egcs-bugs@cygnus.com'.


-- 

Mark S. Johnstone, Ph.D.  Methodology and Tools Development
markj@ibmoto.com          Networking & Computing Systems Group
                          Somerset Design Center, MD: OE70
(512) 424-8468 (desk)     6200 Bridgepoint Parkway, Bldg. #4, Austin, TX  78730
(512) 933-7333 pin 428468 (pager)



More information about the Gcc-bugs mailing list