https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90920
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2019-06-18 Target Milestone|--- |9.2 Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- The problem case happens when std::rotate is compiled with the old headers and std::__rotate is compiled with the new code, and so neither function checks for an empty range. Reverting the patch is easy, but that doesn't help code already compiled with GCC 9.1, which has non-checking instantiations of std::__rotate.