other/5390: Libiberty fails to demangle multi-digit template parameters.

Hans-Peter Nilsson hp@bitrange.com
Tue Jan 15 20:06:00 GMT 2002


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
 



More information about the Gcc-prs mailing list