egcs 1.1b: strange syntax error under -pedantic
Chris Metcalf
metcalf@incert.com
Mon Sep 28 09:50:00 GMT 1998
The following snippet compiles fine under egcs 1.1b with no extra options:
template <class FOO> class A {
typedef int a_int;
};
template <class FOO> class B {
typedef A<FOO*> A_FOO;
A_FOO::a_int foo;
};
However, when compiled with -pedantic, it fails with
foo.cpp:7: syntax error before `;'
This worked fine under egcs 1.0.3.
Chris Metcalf -- InCert Software -- 1 (617) 621 8080
metcalf@incert.com -- http://www.incert.com/~metcalf
More information about the Gcc-bugs
mailing list