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: -pedantic -> type is no longer a type in 19990131


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/




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