[Bug c++/13957] GCC 3.4 rejects some template heavy code that 3.3.1 accepts
giovannibajo at libero dot it
gcc-bugzilla@gcc.gnu.org
Sun Feb 1 11:31:00 GMT 2004
------- Additional Comments From giovannibajo at libero dot it 2004-02-01 11:31 -------
Not a bug, the library code is ill-formed. list.h around line 562 should be:
template <class T, class F> struct ConsHelp<T,F,List<T> > {
OddList<T> operator()( const T& x, const F& f ) const {
return OddList<T>(x, List<T>(
IRef<Cache<T> >(new Cache<T>(typename Cache<T>::CvtFxn(),f))));
}
Note the keyword "typename" I added.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |giovannibajo at libero dot
| |it
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13957
More information about the Gcc-bugs
mailing list