From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16112 invoked by alias); 20 May 2002 12:36:03 -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 16079 invoked by uid 71); 20 May 2002 12:36:02 -0000 Resent-Date: 20 May 2002 12:36:02 -0000 Resent-Message-ID: <20020520123602.16078.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, ericcrampton@hotmail.com Received:(qmail 13920 invoked by uid 61); 20 May 2002 12:31:58 -0000 Message-Id:<20020520123158.13919.qmail@sources.redhat.com> Date: Mon, 20 May 2002 05:36:00 -0000 From: ericcrampton@hotmail.com Reply-To: ericcrampton@hotmail.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/6734: Overly permissive name lookup X-SW-Source: 2002-05/txt/msg00592.txt.bz2 List-Id: >Number: 6734 >Category: c++ >Synopsis: Overly permissive name lookup >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Mon May 20 05:36:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: ericcrampton@hotmail.com >Release: gcc-3.1 and gcc-3.0.4 >Organization: >Environment: Redhat Linux 7.2 (Intel), verified on gcc-3.1 and gcc-3.0.4 >Description: The code below compiles, but it should not. The compiler is allowing a class and namespace to have the same name, but it should not. FWIW, Comeau's compiler rejects this code. namespace Foo { } class Foo { }; int main() { } >How-To-Repeat: Compile the code in the description. >Fix: Output an error. >Release-Note: >Audit-Trail: >Unformatted: