This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Fix demangler in symbol versioning
"H. J. Lu" <hjl@lucon.org> writes:
> > 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.
>
> In that case, we have a regression with cxxfilt. The old one:
>
> # cxxfilt i
> i
>
> The new one:
>
> # ./cxxfilt i
> int
What is ``the old one'' in this case?
I think a c++filt built from any sources in 2003 will print `int' when
passed `i'. Certainly I have one which does that.
Ian