This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: template scope->parse error
- To: Barry Branham <bbranham at earthlink dot net>
- Subject: Re: template scope->parse error
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- Date: Thu, 14 Jan 1999 14:27:51 +0100 (MET)
- cc: egcs-bugs at cygnus dot com
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/