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: template scope->parse error


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
confusing.

> 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
-- 
Gerald Pfeifer (Jerry)      Vienna University of Technology
pfeifer@dbai.tuwien.ac.at   http://www.dbai.tuwien.ac.at/~pfeifer/



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