This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
AW: G++ Bug with option -pedantic
- To: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>, kanze at gabi-soft dot de
- Subject: AW: G++ Bug with option -pedantic
- From: "Kanze, James" <James dot Kanze at Dresdner-Bank dot com>
- Date: Wed, 10 May 2000 14:49:26 +0200
- Cc: gcc-bugs at gcc dot gnu dot org
|> Thanks for your bug report. I believe there is indeed an
|> error in your
|> code.
|> > vci.cc:22: parse error before `='
|> This line reads
|> std::vector< T >::const_iterator src = other.begin() ;
|> Since std::vector<T> is a dependent name, const_iterator is taken as
|> an expression here. Since you want it to be a type, you have to write
|> typename std::vector< T >::const_iterator src = other.begin() ;
Sorry about that -- I'd forgotten about typename. And since the code
had worked with older versions (and other compilers), I didn't look
very far.
Thanks for taking the time to look at it.
--
James Kanze mailto:kanze@gabi-soft.de
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
Ziegelhüttenweg 17a, 60598 Frankfurt, Germany Tel. +49(069)63198627