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


Mark Mitchell <mark@codesourcery.com> writes:

| > What I'm trying to say is that the defaulting to global_namespace is
| > not appropriate for some cases (and I don't even thing it is right at
| > all), and that can lead to subtle bugs. 
| > 
| 
| OK, I understand.
| 
| You're correct -- it would be better if DECL_CONTEXT was the
| global_namespace for things for which that is appropriate, and NULL for
| things which have no obvious scope.
| 
| That would, however, require changes to the language-independent parts
| of the compiler, IIRC.

I understand that.  I don't think I'll propose a patch for that in
3.3.x or 3.4.x (unless a very serious bug shows up), but it is
something to consider for 3.5.x for example.

-- Gaby


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