Internal compiler error on i386-pc-solaris2.6

Victor Zandy zandy@cs.wisc.edu
Mon Jul 26 14:10:00 GMT 1999


    Here is an internal compiler error for pgcc-2.91.66 on
i386-pc-solaris2.6.

    I'll be glad to provide additional information upon request.


THE COMMAND LINE:
basil% g++ -v --save-temps -c bug.C
Reading specs from /s/egcs-1.1.2/sunx86_56/lib/gcc-lib/i386-pc-solaris2.6/pgcc-2.91.66/specs
gcc version pgcc-2.91.66 19990314 (egcs-1.1.2 release)
 /s/egcs-1.1.2/sunx86_56/lib/gcc-lib/i386-pc-solaris2.6/pgcc-2.91.66/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -Dunix -D__svr4__ -D__SVR4 -Dsun -D__unix__ -D__svr4__ -D__SVR4 -D__sun__ -D__unix -D__sun -Asystem(svr4) -D__EXCEPTIONS -Asystem(unix) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ bug.C bug.ii
GNU CPP version pgcc-2.91.66 19990314 (egcs-1.1.2 release) (i386 System V Release 4)
#include "..." search starts here:
#include <...> search starts here:
 /s/egcs-1.1.2/sunx86_56/include/g++
 /s/egcs-1.1.2/sunx86_56/i386-pc-solaris2.6/include
 /s/egcs-1.1.2/sunx86_56/lib/gcc-lib/i386-pc-solaris2.6/pgcc-2.91.66/include
 /usr/include
End of search list.
 /s/egcs-1.1.2/sunx86_56/lib/gcc-lib/i386-pc-solaris2.6/pgcc-2.91.66/cc1plus bug.ii -quiet -dumpbase bug.cc -version -o bug.s
GNU C++ version pgcc-2.91.66 19990314 (egcs-1.1.2 release) (i386-pc-solaris2.6) compiled by GNU C version pgcc-2.91.66 19990314 (egcs-1.1.2 release).
bug.C:24: Internal compiler error.
bug.C:24: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
bug.C:24: See <URL: http://egcs.cygnus.com/faq.html#bugreport > for details.


THE RESULTANT BUG.II:
# 1 "bug.C"
class operand_code {
     class addr_type {
	  class Etype {};
	  class Mtype {};
     public:
	  static Etype E;
	  static Mtype M;
     };

     class operand_type {
	  class vtype {};
	  class wtype {};
     public:
	  static vtype v;
	  static wtype w;
     };

     operand_code(addr_type::Etype, operand_type::vtype);
     operand_code(addr_type::Etype, operand_type::wtype);
     operand_code(addr_type::Mtype, operand_type::vtype);
     operand_code(addr_type::Mtype, operand_type::wtype);

public:
     static const operand_code Ev(addr_type::E, operand_type::v);
};


More information about the Gcc-bugs mailing list