Bug report
Gerald Pfeifer
pfeifer@dbai.tuwien.ac.at
Mon Nov 30 16:05:00 GMT 1998
On Mon, 30 Nov 1998, Karlheinz Langguth wrote:
> Take a look at the following (senseless but correct) C++ source program:
Actually your program is not correct ISO C++.
> template <class c>
> class a
> {
> vector<a *> v;
> vector<a *>::iterator i;
The line above should read ``typename vector<a *>::iterator i;''.
> Do you see a syntax error? If so, why does it only show with
> "-pedantic"?
By means of -pedantic you have asked for stronger enforcement of the
C++ standards; without -pedantic, the implicit typename extension of
egcs comes into play.
Egcs is correct in diagnosing a syntax error, though I agree that a
more concrete error message would be nice.
Gerald
--
Gerald Pfeifer (Jerry) Vienna University of Technology
pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/
More information about the Gcc-bugs
mailing list