This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14186] New: [REGRESSION 3.4] enum in base class conflicts with derived class
- From: "mueller at kde dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Feb 2004 03:55:18 -0000
- Subject: [Bug c++/14186] New: [REGRESSION 3.4] enum in base class conflicts with derived class
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Hi, this is a new regression after the fix for PR c++/14086 was committed.
I'm not 100% sure if it is valid though.
=== cut ===
struct Base
{
enum { Derived };
};
class Derived : public Base
{
Derived();
}
=== cut ===
t/enumregression.cc:7: error: `Base::Derived' has the same name as the class in
which it is declared
t/enumregression.cc:9: error: expected unqualified-id at end of input
--
Summary: [REGRESSION 3.4] enum in base class conflicts with
derived class
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mueller at kde dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14186