This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

[Bug c++/13447] New: Another demangler problem with method cv-qualifiers


Try demangling this name:
  _ZZN8CryptoPP7NullRNGEvENK7NullRNG13AlgorithmNameEv

The resulting tree looks like:
typed name
  qualified name
    typed name
      qualified name
        name 'CryptoPP'
        name 'NullRNG'
      function type
    const this
      qualified name
        name 'NullRNG'
        name 'AlgorithmName'
  function type

It seems to me that the const this applies to the AlgorithmName, and should be
printed
after its argument list.  Instead it's printed as:
  CryptoPP::NullRNG()::NullRNG::AlgorithmName const()

The old demangler did this too.  This is presumably caused by the 'odd' qualified
name whose leftmost part is a typed name.

-- 
           Summary: Another demangler problem with method cv-qualifiers
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: ian at airs dot com
        ReportedBy: drow at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i386-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13447


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