This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/14186] New: [REGRESSION 3.4] enum in base class conflicts with derived class


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]