This is the mail archive of the
mailing list for the GCC project.
Re: handle <local-source-name> in demangler
Geoffrey Keating <email@example.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?