This is the mail archive of the gcc-patches@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]

Re: C++ PATCH [3.3.3] PR 13544


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


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