This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
"using" directive bug
- From: Lev Assinovsky <LAssinovsky at algorithm dot aelita dot com>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 29 Jan 2003 16:20:23 +0300
- Subject: "using" directive bug
Hi all!
I got a compiler error "parse error before `operator' " for the following
program:
namespace N1
{
struct A
{
int a;
};
int f() {}
bool operator == (const A& a, const A& b) { return true; }
}
int main()
{
if (1)
{
using N1::A;
using N1::f;
using N1::operator ==; //Have an error here
}
}
The error occurs on both gcc 3.2 solaris-intel and gcc 3.2.1 solaris-sparc
compilers.
Is that a bug?
----
Lev Assinovsky
Aelita Software Corporation
O&S Core Division, Programmer
ICQ# 165072909