13544 – [3.3.3 regression] "conflicting types" for enums in different scopes (original) (raw)

Description Debian GCC Maintainers 2004-01-02 11:23:09 UTC

[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'

Comment 1 Drea Pinski 2004-01-02 13:28:01 UTC

*** Bug 13546 has been marked as a duplicate of this bug. ***

Comment 2 Drea Pinski 2004-01-02 13:42:51 UTC

Confirmed.

Comment 4 Falk Hueffner 2004-01-08 15:52:27 UTC

*** Bug 13613 has been marked as a duplicate of this bug. ***

Comment 5 Nathanael C. Nerode 2004-01-08 21:44:53 UTC

This is biting Debian rather badly. Can this possibly be fixed quickly? :-/

Comment 6 Gabriel Dos Reis 2004-01-09 04:27:59 UTC

Subject: Re: [3.3.3 regression] "conflicting types" for enums in different scopes

"neroden at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:

| This is biting Debian rather badly. Can this possibly be fixed quickly? :-/

Someone had the bright idea to steal my laptop in my office this afternoon, 1-2 days delay may be expected.

Comment 7 Robert Schiele 2004-01-10 16:57:19 UTC

*** Bug 13639 has been marked as a duplicate of this bug. ***

Comment 8 Gabriel Dos Reis 2004-01-10 17:33:32 UTC

Mine

Comment 10 Gabriel Dos Reis 2004-01-11 00:56:35 UTC

just fixed

Comment 11 andreasmeier80 2004-01-11 13:04:11 UTC

It may be useful to have the tastcase on mainline