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]

bug: bad virtual base class in templates: Internal compiler error



Further bug of my collection. I know that this code is not corect, but the
compiler shouldn't crash. He should report that problem.

I have compiled that code with egcs-2.90.27
980315 (egcs-1.0.2 release) on solaris2.5.0 and Linux 2.0.32, it crashes.

bug5.C:8: Internal compiler error.

class A {};

template <class tA> class T1 : virtual public tA {};
template <class tA> class T2 : public tA {};

class B1 : public T1<A> {};
class B2 : public T2<B1> {};


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