]> gcc.gnu.org Git - gcc.git/commit - gcc/cp/name-lookup.c
re PR c++/14186 (enum in base class conflicts with derived class)
authorMark Mitchell <mark@codesourcery.com>
Fri, 20 Feb 2004 06:43:08 +0000 (06:43 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 20 Feb 2004 06:43:08 +0000 (06:43 +0000)
commita6567a0faaeafd7dc37eb6d52666c12f466c376f
tree672b0866db4b5b381df2069fe9d95a9aeab85507
parentf819a6a516e88b987f72f374c5e5d5e8f3ec2798
re PR c++/14186 (enum in base class conflicts with derived class)

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.

From-SVN: r78149
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/member1.C [new file with mode: 0644]
This page took 0.055433 seconds and 5 git commands to generate.