template scope->parse error

Gerald Pfeifer pfeifer@dbai.tuwien.ac.at
Thu Jan 14 05:28:00 GMT 1999

On Mon, 11 Jan 1999, Barry Branham wrote:
> I'm just starting to use egcs c++ 1.1.1 and am not sure if the following
> is my error or a bug.

It's your error, but admittedly the error message you got may be a bit

> template <class SCT, class PT>
> void Surface<SCT, PT>::test( SCT *crv)
> {
>     SCT::iterator p;            // <-- this is line 26 where the error occurs

This line should read "typename SCT::iterator p" according to ISO C++.

Hope this helps,
Gerald Pfeifer (Jerry)      Vienna University of Technology
pfeifer@dbai.tuwien.ac.at   http://www.dbai.tuwien.ac.at/~pfeifer/

More information about the Gcc-bugs mailing list