ICE in `expand_expr', at expr.c:5719

Loring Holden lshATcs.brown.edu
Tue Sep 14 22:22:00 GMT 1999


I get the following:
test.C: In function `void FPS()':
test.C:48: Internal compiler error in `expand_expr', at expr.c:5719
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport > for instructions.

This is from the CVS sources as of midnight, Sep. 14 under sparc-sun-solaris2.7

The source:
template <class T>
class REFptr {
   public:
      REFptr();
      REFptr(T *pObj);
      virtual ~REFptr();
      operator T* () const;
};

class GEL;
class GELsubc {
   public :
      virtual GEL *GELcast() const;
};
class GELptr : public REFptr<GEL>{
   public :                                        
      GELptr(const GELptr  &p);
      GELptr(const GELsubc &p);
};
class GEL { };

class GEOM;
class GEOMptr : public REFptr<GEOM>, public GELsubc {
   public:
      GEOMptr() { }
      GEOMptr(GEOM  *g); 
};
class GEOM : public GEL {
   public: 
      GEOM(const GEOMptr &o);
      GEOM();
};

class TEXT2D;
class TEXT2Dptr : public REFptr<TEXT2D> {
   public:
      TEXT2Dptr();
      TEXT2Dptr(TEXT2D *g); 
};
class TEXT2D : public GEOM { };

void testit(const GELptr g);

void
FPS()
{
   TEXT2Dptr fps_text(new TEXT2D);
   testit(GEOMptr(&*fps_text));
}


More information about the Gcc-bugs mailing list