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++/13544] New: [3.3.3 regression] "conflicting types" for enums in different scopes


[forwarded from http://bugs.debian.org/225663]

this regression was introduced between 20031206 and 20031229 on the 3.3 branch.

the following example

enum Enum1
{
    None
};

namespace Test
{
    enum Enum2
    {
        None
    };
}

int main()
{
}
 
compiles withtest.cpp:11: error: conflicting types for `None'
test.cpp:4: error: previous declaration as `Enum1 None'

-- 
           Summary: [3.3.3 regression] "conflicting types" for enums in
                    different scopes
           Product: gcc
           Version: 3.3.3
            Status: UNCONFIRMED
          Severity: critical
          Priority: P1
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: debian-gcc at lists dot debian dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13544


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