This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

[Bug c++/18957] [4.0 regression] ICE in perform_or_defer_access_check


------- 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


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