https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125565
--- Comment #6 from Boris Kolpackov <boris at kolpackov dot net> --- Thanks for the comments. I am not sure I see the rationale behind the current semantics (while seeing the drawbacks quite clearly). But I understand that changing this is not an option. Would adding a non-standard (to start with) extension that allows the user to reset the weak pointer explicitly be an option? Something like std::enable_shared_from_this::reset_weak_this()?
