This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]