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: other/5390: Libiberty fails to demangle multi-digit templateparameters.


On Tue, 15 Jan 2002, Carlo Wood wrote:

> As promised, sending this patch also to gcc-patches@gcc.gnu.org
>
> The following patch fixes the problem that an integral template
> parameter larger than 9 or smaller than -9 was not demangled
> correctly (and even led to a core dump in libiberty).
> (This is only related to the old ABI, g++-2.95.x thus).

>
> This is not a problem since g++-2.95.x never mangles
> names in a way that there would follow a digit that
> does not belong to the number.  However, the testsuite
> assumed that this was the case and was testing several
> incorrect mangled names.

IIRC, this is because of blessed backward-compatibility.  Names
mangled with earlier GCC releases (earlier than gcc-2.95) are
supposed to be demanglable (when at all possible).  If you have
checked this, please say so.  Maybe it's not important any
longer.

brgds, H-P


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