This is the mail archive of the
mailing list for the GCC project.
Re: C++ PATCH [3.3.3] PR 13544
Jason Merrill <email@example.com> writes:
| On 11 Jan 2004 01:39:29 +0100, Gabriel Dos Reis <firstname.lastname@example.org> 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
The point in the issue was precisely that that default was not appropriate.
It does not really test whether a decl has namespace scope.