This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14186] [3.4/3.5 Regression] enum in base class conflicts with derived class
- From: "cvs-commit at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Feb 2004 06:43:19 -0000
- Subject: [Bug c++/14186] [3.4/3.5 Regression] enum in base class conflicts with derived class
- References: <20040218035516.14186.mueller@kde.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-02-20 06:43 -------
Subject: Bug 14186
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: mmitchel@gcc.gnu.org 2004-02-20 06:43:08
Modified files:
gcc/testsuite : ChangeLog
gcc/cp : ChangeLog name-lookup.c
Added files:
gcc/testsuite/g++.dg/lookup: member1.C
Log message:
PR c++/14186
* name-lookup.c (push_class_level_binding): Do not complain about
adding a binding for a member whose name is the same as the
enclosing class if the member is located in a base class of the
current class.
PR c++/14186
* g++.dg/lookup/member1.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3522&r2=1.3523
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/lookup/member1.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.3961&r2=1.3962
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/name-lookup.c.diff?cvsroot=gcc&r1=1.38&r2=1.39
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14186