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++/13095] GCC accepts invalid using declaration


------- Additional Comments From giovannibajo at libero dot it  2004-01-24 11:23 -------
The bug is actually interesting because [namespace.udecl]/4 says: "A using-
declaration used as a member-declaration shall refer to a member of a base 
class of the class being defined". Most vendors seem to interpret it in a way 
to make the code invalid, but notice that "B<T>::i" is a perfectly well-formed 
way to refer to a member of a base class. Uhm.

-- 


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


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