libstdc++ Chapter 28. Demangling example
Jonny Grant
jg@jguk.org
Fri Mar 31 15:24:14 GMT 2023
Hello
I tried out this code. Maybe I'm doing something wrong?
https://godbolt.org/z/Y78h4f1W6
https://gcc.gnu.org/onlinedocs/gcc-12.2.0/libstdc++/manual/manual/ext_demangling.html
However only get reduced output after status -2 is returned:
std::bad_exception =>
Looks like std::cout gets broken by the nullptr realname (that's a frustration). So I put an if(realname) in the godbolt link above.
Maybe it's also a good time to update the example abi::__cxa_demangle call from those 0 parameters to be NULL?
Cheers, Jonny
More information about the Libstdc++
mailing list