From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8002 invoked by alias); 24 Jan 2003 23:06:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 7987 invoked by uid 71); 24 Jan 2003 23:06:00 -0000 Date: Fri, 24 Jan 2003 23:06:00 -0000 Message-ID: <20030124230600.7986.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: "Giovanni Bajo" Subject: Re: c++/9432: [3.4 regression] [New parser] ICE in validate_nonmember_using_decl, at cp/decl2.c:4152 Reply-To: "Giovanni Bajo" X-SW-Source: 2003-01/txt/msg01449.txt.bz2 List-Id: The following reply was made to PR c++/9432; it has been noted by GNATS. From: "Giovanni Bajo" To: , , , , Cc: Subject: Re: c++/9432: [3.4 regression] [New parser] ICE in validate_nonmember_using_decl, at cp/decl2.c:4152 Date: Fri, 24 Jan 2003 23:59:14 +0100 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&p r=9432 Using declarations to 'import' symbols from base classes are legal only at class definition scope, not member function scope. You can use using declarations at function scope to import from other namespaces, that's perfectly legal: namespace A { int a; } struct Foo { void Bar(void) { using A::a; a = 5; } }; I agree that the proposed code should not compile. Giovanni Bajo