This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18957] [4.0 regression] ICE in perform_or_defer_access_check
- From: "schwab at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Dec 2004 17:01:43 -0000
- Subject: [Bug c++/18957] [4.0 regression] ICE in perform_or_defer_access_check
- References: <20041213154248.18957.schwab@suse.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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