https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122224

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
           Assignee|unassigned at gcc dot gnu.org      |redi at gcc dot gnu.org
   Target Milestone|---                         |16.0

--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Patch posted:
https://gcc.gnu.org/pipermail/gcc-patches/2025-October/698348.html

With this change the std::prev call becomes erroneoues behaviour, not
undefined. So if you violate the function's precondition, you either get
abort() or a no-op, but not UB.

Reply via email to