This is the mail archive of the gcc@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]

possible bug



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


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