[forwarded from http://bugs.debian.org/225663]
this regression was introduced between 20031206 and 20031229 on the 3.3 branch.
the following example
compiles withtest.cpp:11: error: conflicting types for `None'
test.cpp:4: error: previous declaration as `Enum1 None'
*** Bug 13546 has been marked as a duplicate of this bug. ***
Reverting this patch:
2003-12-26 Gabriel Dos Reis <firstname.lastname@example.org>
Backport from mainline:
2003-12-22 Mark Mitchell <email@example.com>
* decl.c (pushdecl): Look up all namespace-scope entities in their
Fixes the problem.
*** Bug 13613 has been marked as a duplicate of this bug. ***
This is biting Debian rather badly. Can this possibly be fixed quickly? :-/
Subject: Re: [3.3.3 regression] "conflicting types" for enums in different scopes
"neroden at gcc dot gnu dot org" <firstname.lastname@example.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.
*** Bug 13639 has been marked as a duplicate of this bug. ***
Subject: Bug 13544
Module name: gcc
Changes by: email@example.com 2004-01-11 00:56:02
gcc/cp : ChangeLog decl.c
* decl.c (build_enumerator): Set DECL_CONTEXT after the
has been pushed.
(pushdecl): Don't use DECL_NAMESPACE_SCOPE_P to test whether a
decl has a namespace-scope; that isn't really what it means.
It may be useful to have the tastcase on mainline