This is the mail archive of the gcc-bugs@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]

Re: c++/9022: using declaration accepted as using directive


Synopsis: using declaration accepted as using directive

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Fri Dec 20 19:13:09 2002
State-Changed-Why:
    Confirmed. Short testcase:
    ---------------
    namespace gnu {
      namespace gcc {
      }
    }
    using gnu::gcc;
    ------------
    This should be rejected, but is not.
    
    Regarding your other problem: this is what gcc3.4
    and icc7 say:
    tmp/g> /home/bangerth/bin/gcc-3.4-CVS/bin/c++ -c x.cc
    x.cc:6: error: using-declaration for non-member at class scope
    tmp/g> icc -c x.cc
    x.cc(6): error: a class-qualified name is required
          using gnu::gcc;
                ^
    I think they both say the same, but in different words,
    so I'd say this is ok. However, this doesn't touch the
    problem above.
    
    W.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9022


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