compiler crash with class nested in template class
scott snyder
snyder@d0sgif.fnal.gov
Thu Apr 2 02:13:00 GMT 1998
hi -
For egcs 2.91.16, checked out on the afternoon of Mar. 31, on a
mips-sgi-irix6.2 platform, the following input crashes the compiler:
-- bug34.cc -----------------------------------------
template <class Key>
class d0om_Hashmap
{
public:
class iterator
{
public:
bool operator== (const iterator& x) const;
};
};
template <class Key>
inline
bool d0om_Hashmap<Key>::iterator::operator==
(const typename d0om_Hashmap<Key>::iterator& x) const
{
return false;
}
-----------------------------------------------------
% cc1plus bug34.cc
bug34.cc:16: Internal compiler error 892.
bug34.cc:16: Please submit a full bug report to `egcs-bugs@cygnus.com'.
thanks,
sss
More information about the Gcc-bugs
mailing list