This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: simple function template problem
- To: "Yonik Seeley" <yseeley at cs dot stanford dot edu>, egcs-bugs at cygnus dot com
- Subject: Re: simple function template problem
- From: njs3 at doc dot ic dot ac dot uk (Niall Smart)
- Date: Thu, 4 Jun 1998 10:12:25 +0100
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