C++ PATCH [3.3.3] PR 13544
Gabriel Dos Reis
gdr@integrable-solutions.net
Sun Jan 11 20:18:00 GMT 2004
Jason Merrill <jason@redhat.com> writes:
| On 11 Jan 2004 01:39:29 +0100, Gabriel Dos Reis <gdr@integrable-solutions.net> wrote:
|
| > (1) DECL_NAMESPACE_SCOPE_P does not actually test whether a decl has
| > a namespace scope -- because if teh DECL_CONTEXT is absent then
| > it defaults to the global_namespace;
|
| Yes, it does. It uses CP_DECL_CONTEXT, which returns global_namespace as
| appropriate.
The point in the issue was precisely that that default was not appropriate.
It does not really test whether a decl has namespace scope.
-- Gaby
More information about the Gcc-patches
mailing list