Xiaoyong Guo
Xiaoyong Guo

Reputation: 393

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

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.

Upvotes: 1

Views: 636

Answers (1)

xoyo
xoyo

Reputation: 31

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

Upvotes: 2

Related Questions