This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
g++-3.2.1: parse error before using operator declarative
- From: Markus Werle <numerical dot simulation at web dot de>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 28 Nov 2002 17:15:34 +0100
- Subject: g++-3.2.1: parse error before using operator declarative
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+;
}
------------------------------------------