This is the mail archive of the gcc@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]

abort in g++ in egcs 971122



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


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