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: handle <local-source-name> in demangler


Geoffrey Keating <geoffk@apple.com> writes:

> > It's not immediately clear to me that you only need to change
> > <unqualified-name>.  After all, you can have classes that are local to
> > a file as well, so with -combine you can have duplicate X::Y::j names.
> > How are you planning to handle that?  Are you sure you don't need a
> > <discriminator> case for <prefix>?
> 
> I don't know what you mean by "classes that are local to a file".  If
> you have a class named 'j' in namespace X::Y in two different files,
> there is only one class and it is the same in both files.  (This is
> true even if X or Y are classes instead of name spaces.)

You're right, of course, sorry about that.

What if you just automatically create an anonymous namespace for
static functions with nested classes/functions?

Ian


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