This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Internal compiler error
- To: egcs-bugs at cygnus dot com
- Subject: Internal compiler error
- From: Jan Reimers <reimers at unix dot infoserve dot net>
- Date: Mon, 08 Sep 1997 19:47:07 -0700
Compile this c++ snippet with the Sept/04 snapshot
gcc -c -DCRASH test5.cc
and I get an internal compiler error.
Linux 2.0.27 on a P-Pro machine
#ifdef CRASH
#define VIRTUAL virtual
#else
#define VIRTUAL
#endif
class A {};
class B : public VIRTUAL A {};
template <class Imp> class C : public /*virtual*/ Imp {};
// define CRASH and uncomment here ^^^^^^^^^^^
// and the crash goes away!!!!
template class C<B>;