nm and c++filter cannot demangle very long mangled c++ names?

379 Views Asked by At

when experimenting c++ template meta-programming, I constructed a template type that is recursively defined, which makes type name very long in mangled form(~4600 bytes) if recursion depth is greater than 4, both nm -C and c++filt can not demangle the long name. Is this a limitation of nm and c++filt or the limitation of underlying libary used for demangling?

Edit: After I posted this question, I tried the same thing on my MacBook, it turned out the on MacOs, nm and c++filt works properly for the very long mangled name.

1

There are 1 best solutions below

0
On

There is a c++filt bug about demangling a variadic auto lambda. You could give llvm-cxxfilt a try.

Reference: https://stackoverflow.com/a/69641274