From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23310 invoked by alias); 21 Dec 2002 03:13:11 -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 23278 invoked by uid 61); 21 Dec 2002 03:13:09 -0000 Date: Fri, 20 Dec 2002 19:13:00 -0000 Message-ID: <20021221031309.23277.qmail@sources.redhat.com> To: fonseca@mip.sdu.dk, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org From: bangerth@dealii.org Reply-To: bangerth@dealii.org, fonseca@mip.sdu.dk, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/9022: using declaration accepted as using directive X-SW-Source: 2002-12/txt/msg01135.txt.bz2 List-Id: Synopsis: using declaration accepted as using directive State-Changed-From-To: open->analyzed State-Changed-By: bangerth State-Changed-When: Fri Dec 20 19:13:09 2002 State-Changed-Why: Confirmed. Short testcase: --------------- namespace gnu { namespace gcc { } } using gnu::gcc; ------------ This should be rejected, but is not. Regarding your other problem: this is what gcc3.4 and icc7 say: tmp/g> /home/bangerth/bin/gcc-3.4-CVS/bin/c++ -c x.cc x.cc:6: error: using-declaration for non-member at class scope tmp/g> icc -c x.cc x.cc(6): error: a class-qualified name is required using gnu::gcc; ^ I think they both say the same, but in different words, so I'd say this is ok. However, this doesn't touch the problem above. W. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9022