This is the mail archive of the gcc-prs@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]

Re: c++/3111: Demangler in libiberty.a is broken


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>


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