Internal compiler error 999

Mark Richters mr@informatik.uni-bremen.de
Thu Jun 11 08:29:00 GMT 1998


The following code causes an internal compiler error 999 with the
19980608 snapshot as well as with egcs-1.0.3a and gcc-2.8.1. Output
from the latest snapshot is below (I'm not sure whether a reference to
a destructor in mem_fun is legal anyway).

Mark

#include <vector>
#include <functional>
#include <algorithm>

class OTMenuItem
{
public:
    ~OTMenuItem();
};

class OTMenu
{
public:
    ~OTMenu();

private:
    vector<OTMenuItem*> mItems;
};


OTMenu::~OTMenu() {
    for_each(mItems.begin(), mItems.end(), mem_fun(&OTMenuItem::~OTMenuItem));
}


-> egcs-g++ -c -v bug.cc
Reading specs from /home/dbs/lang/egcs-19980608/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.40/specs
gcc version egcs-2.91.40 19980608 (gcc2 ss-980502 experimental)
 /home/dbs/lang/egcs-19980608/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.40/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -Dsparc -Dsun -Dunix -D__svr4__ -D__SVR4 -D__sparc__ -D__sun__ -D__unix__ -D__svr4__ -D__SVR4 -D__sparc -D__sun -D__unix -Asystem(unix) -Asystem(svr4) -D__EXCEPTIONS -D__GCC_NEW_VARARGS__ -Acpu(sparc) -Amachine(sparc) bug.cc /var/tmp/cca0002k.ii
GNU CPP version egcs-2.91.40 19980608 (gcc2 ss-980502 experimental) (sparc)
#include "..." search starts here:
#include <...> search starts here:
 /home/dbs/lang/egcs-19980608/include/g++
 /usr/local/include
 /home/dbs/lang/egcs-19980608/sparc-sun-solaris2.5.1/include
 /home/dbs/lang/egcs-19980608/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.40/include
 /usr/include
End of search list.
 /home/dbs/lang/egcs-19980608/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.40/cc1plus /var/tmp/cca0002k.ii -quiet -dumpbase bug.cc -version -o /var/tmp/cca0002k.s
GNU C++ version egcs-2.91.40 19980608 (gcc2 ss-980502 experimental) (sparc-sun-solaris2.5.1) compiled by GNU C version egcs-2.91.40 19980608 (gcc2 ss-980502 experimental).
bug.cc: In method `OTMenu::~OTMenu()':
bug.cc:22: Internal compiler error 999.
bug.cc:22: Please submit a full bug report to `egcs-bugs@cygnus.com'.

-- 
Mark Richters (mr@informatik.uni-bremen.de)



More information about the Gcc-bugs mailing list