This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: bug report
Volker Wysk wrote:
> --------------------------------
> template <typename T>
> void foo(T x) {
> T::item it;
> }
> --------------------------------
T::item is a type dependant name (it depends on what T is defined as)
see 14.6/2
you need
typename T::item it;
to say that `T::item' is a type
nathan
--
Dr Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org