https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82481
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- It is a dangling pointer, but it can't be dereferenced, so it doesn't matter. It's only used by std::call_once and will be set to a different local variable by the next call. We could zero the pointer, but it would be a waste of cycles.