g++-3.2.1: parse error before using operator declarative
Markus Werle
numerical.simulation@web.de
Fri Nov 29 12:16:00 GMT 2002
Hi!
The following IMHO correct code fails to compile with the
whole gcc-3.x line:
> g++ GCCNamespaceBug.C
GCCNamespaceBug.C: In function `int main()':
GCCNamespaceBug.C:9: parse error before `operator'
Code:
------------------------------------------
class C {};
namespace A {
void operator+(C c1, C c2) {}
}
int main()
{
using A::operator+;
}
------------------------------------------
More information about the Gcc-bugs
mailing list