From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4255 invoked by alias); 24 Jan 2004 11:23:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 4243 invoked by uid 48); 24 Jan 2004 11:23:34 -0000 Date: Sat, 24 Jan 2004 11:23:00 -0000 Message-ID: <20040124112334.4241.qmail@sources.redhat.com> From: "giovannibajo at libero dot it" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20031118001326.13095.reichelt@gcc.gnu.org> References: <20031118001326.13095.reichelt@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/13095] GCC accepts invalid using declaration X-Bugzilla-Reason: CC X-SW-Source: 2004-01/txt/msg03074.txt.bz2 List-Id: ------- 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::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