[Bug 250702] c++filt crashes on a particular symbol

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Oct 29 20:00:11 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250702

--- Comment #5 from Yuri Victorovich <yuri at freebsd.org> ---
(In reply to Dimitry Andric from comment #4)

This code:
> void func1() {
>         auto func2 = []() {
>         };
>         func2();
> }

creates the symbol _ZZ5func1vENK3\$_0clEv that c++filt from the bases asserts
on:
> $ c++filt "_ZZ5func1vENK3\$_0clEv"
> Assertion failed: (ddata->output.size > 0), function cpp_demangle_read_sname, file /usr/src/contrib/elftoolchain/libelftc/libelftc_dem_gnu3.c, line 2138.
> Abort trap

but c++filt from binutils-2.35.1,1 decodes fine:
> $ /usr/local/bin/c++filt "_ZZ5func1vENK3\$_0clEv"
> func1()::$_0::operator()() const

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-toolchain mailing list