Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I don't have this problem with backtraces in Clang. The 'anonymous' lambdas have debugging symbols named after the function it lexically appears in, something like parent_function::$_0::invoke. $_0 is the first lambda in that function, then $_1, etc. So it's easy enough to look up.


This. I was confused when I read that - I guess MSVC doesn't generate such conventional lambda names ?


It's up to the demangler, the info must be there in the decorated/mangled name. Demanglers sometimes choke on these complex symbols.

AFAIK MSVC also changed their lambda ABI once, including mangling. As I recall at one point it even produced some hash in the decorated/mangled name, with no way to revert it, but that was before /Zc:lambda (enabled by default from C++20).


Oh that’s nice, wish gcc did that




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: