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]

Re: simple function template problem


On Jun 3,  9:08pm, "Yonik Seeley" wrote:
} Subject: simple function template problem

> [myhost] more x.C
> template <class T> 
> void foo(T& t) {
>   T::iterator itr;
> }
>  
> [myhost] g++ x.C
> x.C: In function `void foo(T &)':
> x.C:3: parse error before `;'
> [myhost] g++ -v
> Reading specs from /packages2/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.90.29/specs
> gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)
> ps: does anyone know an eta for namespaces???

This bug appears to be fixed in the latest snapshot.  The latest
snapshot has support for namespaces, but I'm not sure how reliable
or complete it is.

Niall


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