This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13095] GCC accepts invalid using declaration
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Jan 2004 11:23:34 -0000
- Subject: [Bug c++/13095] GCC accepts invalid using declaration
- References: <20031118001326.13095.reichelt@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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