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]

[Bug c++/16468] [DR460] using-declaration of namespace name


------- Additional Comments From bangerth at dealii dot org  2004-07-12 20:53 -------
I'm not sure what you want. Of course the DR is only in drafting stage, but 
an inclination has been expressed, and the gcc project would be ill-advised 
to implement anything now that would oppose this inclination. 
 
As for your question of why a using-declaration should not be allowed to 
name namespace names: using declarations are used to inject declarations 
into a scope, for example into a class scope: 
  class Base { 
    void f(int); 
  }; 
  class Derived : public Base { 
    using Base::f; 
    void f(double); 
  }; 
Obviously, allowing a namespace name in a using-declaration inside a class 
declaration does not make much sense. I think I'm just confused what effect 
you try to achieve by allowing namespace names in using-declarations that  
can't be achieved by other means as well? 
 
W. 

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16468


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