When calling abi::__cxa_demangle("e", 0, &length, &cc) length is not updated but the documentation indicates that it should be set to the length of the demangled name.
It seems that this change was introduced after 3.4.6 -- Summary: abi::__cxa_demangle fails to return the length of the decoded name Product: gcc Version: 4.4.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: gcc at magfr dot user dot lysator dot liu dot se GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42230