This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: -pedantic -> type is no longer a type in 19990131
- To: Leo Breebaart <leo at lspace dot org>
- Subject: Re: -pedantic -> type is no longer a type in 19990131
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- Date: Mon, 8 Feb 1999 15:20:32 +0100 (MET)
- cc: egcs-bugs at cygnus dot com
On Mon, 8 Feb 1999, Leo Breebaart wrote:
> template <class T>
> class TPVector : public vector<T *>
> {
> typedef vector<int *>::const_iterator iptype;
> typedef vector<T *>::const_iterator tptype;
^^^
Here you miss a "typename" between "typedef" and "vector", which is
required by ISO C++, but not by egcs without -pedantic.
I fully agree, however, that the error message you saw is by far less
than optimal. :-(
Gerald
--
Gerald Pfeifer (Jerry) Vienna University of Technology
pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/