This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Internal compiler error


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>;





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]