This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: Fix demangler in symbol versioning
"H. J. Lu" <hjl@lucon.org> writes:
> > DMGL_TYPES tells the demangler to see if the string is the mangled
> > version of a type encoding. I don't think the compiler will ever use
> > a type encoding as an external symbol name--that doesn't even really
> > make sense--so I don't think there is any need for DMGL_TYPES here.
> >
>
> Will it lead to incorrect output? If not, I'd like to add it.
It could conceivably lead to incorrect output. I don't know. For
example, if you call cplus_demangle ("i", DMGL_TYPES), you will get
"int". So if there is an external variable named `i', it seems
conceivable that the wrong thing would happen. I haven't thought
about whether this could really happen, though.
Ian