This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/3111: Demangler in libiberty.a is broken
- To: nobody at gcc dot gnu dot org
- Subject: Re: c++/3111: Demangler in libiberty.a is broken
- From: Carlo Wood <carlo at alinoe dot com>
- Date: 15 Jun 2001 16:36:01 -0000
- Cc: gcc-prs at gcc dot gnu dot org,
- Reply-To: Carlo Wood <carlo at alinoe dot com>
The following reply was made to PR c++/3111; it has been noted by GNATS.
From: Carlo Wood <carlo@alinoe.com>
To: gcc-gnats@gcc.gnu.org
Cc:
Subject: Re: c++/3111: Demangler in libiberty.a is broken
Date: Fri, 15 Jun 2001 18:28:21 +0200
Another example of that the qualifiers decoding of libiberty is broken:
/usr/src/gcc/gcc-cvs-3.0/libiberty>./c++filt _Z1fAszL_ZZNK1N1A1fEvE3foo_0E_i
f(int[ sizeof(N::A::f()::foo) const])
Correct is (I am writing my own demangler, hence this bug report):
~/c++/libcw/src/libcwd>a.out _Z1fAszL_ZZNK1N1A1fEvE3foo_0E_i
f(int[sizeof(::N::A::f(void) const::foo)])
Thus, the 'const' is shifted much too far to the right.
--
Carlo Wood <carlo@alinoe.com>