From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19932 invoked by alias); 10 Jan 2004 16:46:37 -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 19924 invoked by uid 48); 10 Jan 2004 16:46:37 -0000 Date: Sat, 10 Jan 2004 16:46:00 -0000 From: "rschiele at uni-mannheim dot de" To: gcc-bugs@gcc.gnu.org Message-ID: <20040110164635.13639.rschiele@uni-mannheim.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/13639] New: enum member is not allowed to have same name as the namespace it is contained in X-Bugzilla-Reason: CC X-SW-Source: 2004-01/txt/msg00929.txt.bz2 List-Id: An enum member is not allowed to have same name as the namespace it is contained in. The code namespace a { enum { a }; }; is rejected with: bug.cc:2: error: `a' redeclared as different kind of symbol bug.cc:1: error: previous declaration of `a' As far as I understand the C++ standard this is perfectly allowed. -- Summary: enum member is not allowed to have same name as the namespace it is contained in Product: gcc Version: 3.3.3 Status: UNCONFIRMED Severity: critical Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rschiele at uni-mannheim dot de CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i586-suse-linux GCC host triplet: i586-suse-linux GCC target triplet: i586-suse-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13639