public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/43838]  New: Incorrect output from abi::__cxa_demangle
@ 2010-04-21 18:14 slawomir at ezono dot com
  2010-04-21 18:16 ` [Bug c++/43838] " slawomir at ezono dot com
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: slawomir at ezono dot com @ 2010-04-21 18:14 UTC (permalink / raw)
  To: gcc-bugs

g++ -v:
Using built-in specs.
Target: i686-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla
--enable-bootstrap --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk
--disable-dssi --enable-plugin
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--enable-libgcj-multifile --enable-java-maintainer-mode
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib
--with-ppl --with-cloog --with-tune=generic --with-arch=i686
--build=i686-redhat-linux
Thread model: posix
gcc version 4.4.3 20100127 (Red Hat 4.4.3-4) (GCC) 


Command line used to compile the example program:
g++ -o main main.cpp

For some template types the output of abi::__cxa_demangle is incorrect.

This was working OK in version 4.3.0

Example program is attached

Expected output (when compiled with gcc version 4.3.0 20080428 (Red Hat
4.3.0-8)):

Mangled name:
N5boost6tuples5tupleIN5abcde5xyzzz3abc4abcd3AaaENS5_4klmn16BaaaaaaaaaaaaaaaENS0_9null_typeES9_S9_S9_S9_S9_S9_S9_EE

Demangled name:

boost::tuples::tuple<abcde::xyzzz::abc::abcd::Aaa,
abcde::xyzzz::abc::abcd::klmn::Baaaaaaaaaaaaaaa, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type>




Actual output (when compiled with gcc version 4.4.3 20100127 (Red Hat
4.4.3-4)):

Mangled name:
N5boost6tuples5tupleIN5abcde5xyzzz3abc4abcd3AaaENS5_4klmn16BaaaaaaaaaaaaaaaENS0_9null_typeES9_S9_S9_S9_S9_S9_S9_EE

Demangled name:

boost::tuples::tuple<abcde::xyzzz::abc::abcd::Aaa,
abcde::xyzzz::abc::abcd::klmn::Baaaaaaaaaaaaaaa, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_ty>


As you can see the last occurrence of "null_type" gets truncated to "null_ty".
The mangled name is the same for both compiler versions.

Note that after making some of the namespace or class names shorter the output
is correct.


-- 
           Summary: Incorrect output from abi::__cxa_demangle
           Product: gcc
           Version: 4.4.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: slawomir at ezono dot com


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


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2010-06-14  8:43 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-21 18:14 [Bug c++/43838] New: Incorrect output from abi::__cxa_demangle slawomir at ezono dot com
2010-04-21 18:16 ` [Bug c++/43838] " slawomir at ezono dot com
2010-05-24 21:47 ` [Bug libstdc++/43838] " paolo dot carlini at oracle dot com
2010-06-08 17:55 ` slawomir at ezono dot com
2010-06-08 17:57 ` paolo dot carlini at oracle dot com
2010-06-08 18:03 ` paolo dot carlini at oracle dot com
2010-06-08 18:06 ` paolo dot carlini at oracle dot com
2010-06-09  8:55 ` [Bug libstdc++/43838] [4.4/4.5/4.6 Regression] " paolo dot carlini at oracle dot com
2010-06-09  9:37 ` [Bug other/43838] " paolo dot carlini at oracle dot com
2010-06-09 16:57 ` hjl dot tools at gmail dot com
2010-06-09 17:06 ` paolo dot carlini at oracle dot com
2010-06-09 17:24 ` jakub at gcc dot gnu dot org
2010-06-09 18:09 ` jakub at gcc dot gnu dot org
2010-06-10 15:16 ` jakub at gcc dot gnu dot org
2010-06-10 15:24 ` jakub at gcc dot gnu dot org
2010-06-10 15:33 ` jakub at gcc dot gnu dot org
2010-06-14  8:43 ` jakub at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).