https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104858
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Patrick Palka <ppa...@gcc.gnu.org>: https://gcc.gnu.org/g:7e76cef873342a66408c126abceaf7dbddd3f477 commit r12-8178-g7e76cef873342a66408c126abceaf7dbddd3f477 Author: Patrick Palka <ppa...@redhat.com> Date: Fri Apr 15 14:41:14 2022 -0400 libstdc++: Avoid double-deref of __first in ranges::minmax [PR104858] PR libstdc++/104858 libstdc++-v3/ChangeLog: * include/bits/ranges_algo.h (__minmax_fn): Avoid dereferencing __first twice at the start. * testsuite/25_algorithms/minmax/constrained.cc (test06): New test.