From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28426 invoked by alias); 10 May 2003 10:26:02 -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 28361 invoked by uid 71); 10 May 2003 10:26:00 -0000 Resent-Date: 10 May 2003 10:26:00 -0000 Resent-Message-ID: <20030510102600.28360.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, thomr9am@ss1000.ms.mff.cuni.cz Received: (qmail 21557 invoked by uid 48); 10 May 2003 10:21:45 -0000 Message-Id: <20030510102145.21556.qmail@sources.redhat.com> Date: Sat, 10 May 2003 10:26:00 -0000 From: thomr9am@ss1000.ms.mff.cuni.cz Reply-To: thomr9am@ss1000.ms.mff.cuni.cz To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/10729: BUG on illegal code - namespace name clash(?) X-SW-Source: 2003-05/txt/msg00958.txt.bz2 List-Id: >Number: 10729 >Category: c++ >Synopsis: BUG on illegal code - namespace name clash(?) >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Sat May 10 10:26:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Rudo Thomas >Release: gcc version 3.2.3 >Organization: >Environment: GNU/Linux, gcc built from scratch >Description: GCC suggested I submitted a bug report when trying to compile the following code: namespace A { const int i = 1; } class A { const int i; }; ::A:i = 2; The error message is: bug.cc:3: `A' as declarator It is worth mentioning that the code is completely ill-formed ;-) >How-To-Repeat: Copy and paste the 3 lines of code from description above to, say, bug.cc . Run gcc bug.cc . >Fix: >Release-Note: >Audit-Trail: >Unformatted: