egcs bug -> parse error

Jason Merrill jason@yorick.cygnus.com
Wed Sep 10 12:50:00 GMT 1997


>>>>> Laurent Bonnaud <bonnaud@irisa.fr> writes:

> the following code does not compile with egcs-2.90.06 :

> template<class T>
> void f(const T& t, void* p)
> {
>   t.g((T::type)p);
> }

You need to say 'typename T::type'.

Jason



More information about the Gcc-bugs mailing list