This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
possible bug
- To: gcc at gcc dot gnu dot org
- Subject: possible bug
- From: Manush Dodunekov <manush at litecom dot se>
- Date: Mon, 26 Jul 1999 02:52:20 +0200 (CEST)
- Organization: LiteCom Interactive
The code below compiles fine with no flags, but fails to compile with a
parse error on the line containing "iterator i;" when compiling with
-pedantic.
This happens with both egcs-1.1.2 (as shipped on RH6.0/i386) and latest
snapshot (19990718).
Is the code wrong in some way, or is this a bug?
-----------------------
#include <vector>
template <class T>
class X : public vector<T> {
public:
void f() {
iterator i;
}
};
int main(void)
{
return 0;
}
---------------------------
thankful for any suggestions,
Manush