This is the mail archive of the
gcc-prs@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: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 16 Jan 2002 04:06:02 -0000
- Subject: Re: other/5390: Libiberty fails to demangle multi-digit templateparameters.
- Reply-to: Hans-Peter Nilsson <hp at bitrange dot com>
The following reply was made to PR other/5390; it has been noted by GNATS.
From: Hans-Peter Nilsson <hp@bitrange.com>
To: Carlo Wood <carlo@alinoe.com>
Cc: <gcc-patches@gcc.gnu.org>, <dj@redhat.com>, <gcc-gnats@gcc.gnu.org>
Subject: Re: other/5390: Libiberty fails to demangle multi-digit template
parameters.
Date: Tue, 15 Jan 2002 22:59:00 -0500 (EST)
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