[Bug c++/18957] [4.0 regression] ICE in perform_or_defer_access_check
schwab at suse dot de
gcc-bugzilla@gcc.gnu.org
Mon Dec 13 17:01:00 GMT 2004
------- Additional Comments From schwab at suse dot de 2004-12-13 17:01 -------
Try this instead (too much deletia).
template<class T> class PLCFIterator;
template<class T> class PLCF
{
friend class PLCFIterator<T>;
public:
PLCFIterator<T> at( unsigned int index ) const;
};
template<class T> class PLCFIterator
{
friend PLCFIterator<T> PLCF<T>::at( unsigned int ) const;
public:
PLCFIterator( const PLCF<T>& plcf );
};
void Position(const PLCF<int> &plcf)
{
PLCFIterator<int> it(plcf);
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18957
More information about the Gcc-bugs
mailing list