abort in g++ in egcs 971122

scott snyder snyder@d0sgif.fnal.gov
Mon Nov 24 21:47:00 GMT 1997


hi -

egcs 971122 aborts on the following C++ input
(on a mips-sgi-irix5.3 platform.)

-- foo.cc ---------------------------------------------------------------------

template <class T>
struct list {typedef T* iterator; };

template <class Elt>
class Queue
{
public:
  void remove_elt ();
};


template <class Elt>
struct Queue_Impl
{
  typedef std::list<Elt> List_Type;
};


template <class Elt>
void Queue<Elt>::remove_elt ()
{
  Queue_Impl<Elt>::List_Type::iterator i;
}

-------------------------------------------------------------------------------

% cc1plus foo.cc
 void Queue<Elt>::remove_elt()
foo.cc:23: Internal compiler error 90.
foo.cc:23: Please submit a full bug report to `egcs-bugs@cygnus.com'.


thanks,
sss



More information about the Gcc mailing list