C++ internal compiler error (Virtual & Embedded & Template)

rch@larissa.sd.bi.ruhr-uni-bochum.de rch@larissa.sd.bi.ruhr-uni-bochum.de
Fri Apr 23 02:49:00 GMT 1999


Hi there,

an internal compiler error is reported by the latest egcs snapshot

---------
c++ -v
Reading specs from /opt/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.93.19/specs
gcc version egcs-2.93.19 19990418 (gcc2 ss-980929 experimental)
--------------

for the following code

--------------
#include <stdlib.h>
// <summary> Primitives to build up metaobjects </summary>
// 
template< class X >
struct VB: public virtual X
{};

template< class MOPTerm1, class MOPTerm2 >
struct MOPTermUnify
{
  struct MO:
    public VB<MOPTerm1>,
    public VB<MOPTerm2>
  {
    void   fix()
      { 
      }
  };
};
--------------
Many thanks for egcs!

Rosta


More information about the Gcc-bugs mailing list