https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101367
--- Comment #3 from Noah Watkins <noah at vectorized dot io> --- Happy to work on providing a different reproducer if it is helpful. This was the first smallish example we could create, and the `free of an invalid pointer error` seemed as good enough as any unexpected behavior for a similar situation. On Sun, Aug 8, 2021 at 5:40 PM davidledger at live dot com.au <gcc-bugzi...@gcc.gnu.org> wrote: > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101367 > > David Ledger <davidledger at live dot com.au> changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > CC| |davidledger at live dot > com.au > > --- Comment #2 from David Ledger <davidledger at live dot com.au> --- > that may be expected, as std::string frees on destruction, where as an empty > capture list doesn't. > > -- > You are receiving this mail because: > You reported the bug.