https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77493
--- Comment #13 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Richard Biener from comment #11) > CCing libstdc++ people -- not sure if std::stable_sort (on which kind of > collection?) is safe for std::shared_ptr. It's required to work correctly. It should be equivalent to sorting TrackingRecHit* pointers.