https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109569
--- Comment #1 from Frank Heckenbach <f.heckenb...@fh-soft.de> --- At least I found a work-around (for now): Moving, rather than copying the (emtpy) shared_ptr parameter to the (unused) shared_ptr member avoids the warning. Still, I'd like to know if this is an actual bug, or another false positive.