simple function template problem
Niall Smart
njs3@doc.ic.ac.uk
Thu Jun 4 02:15:00 GMT 1998
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
More information about the Gcc-bugs
mailing list