Bug report

Karlheinz Langguth karlheinz.langguth@7fun.de
Mon Nov 30 13:07:00 GMT 1998


Hi!

Take a look at the following (senseless but correct) C++ source program:

--- start file test.C
#include<vector>

template <class c>
class a
{
        vector<a *> v;
        vector<a *>::iterator i;
};
---end file test.C

gcc version egcs-2.91.57 19980901 (egcs-1.1 release)
on i586-pc-linux-gnu

produces for the following command line

---start command line
g++ -c -pedantic test.C
---end command line

the following output:

---start output
test.C:7: syntax error before `;'
---end output

It runs through with "g++ -c test.C".

Do you see a syntax error? If so, why does it only show with
"-pedantic"?

Bye,
Karlheinz




More information about the Gcc-bugs mailing list