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

bangerth@dealii.org bangerth@dealii.org
Fri Dec 20 19:13:00 GMT 2002


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



More information about the Gcc-bugs mailing list