This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: other/5390: Libiberty fails to demangle multi-digit templateparameters.
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: Carlo Wood <carlo at alinoe dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>, <dj at redhat dot com>, <gcc-gnats at gcc dot gnu dot org>
- Date: Tue, 15 Jan 2002 22:59:00 -0500 (EST)
- Subject: 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