https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101571
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:667339efd8ee10079aac9684c5d1c9c9b28d9da6 commit r11-9268-g667339efd8ee10079aac9684c5d1c9c9b28d9da6 Author: Jonathan Wakely <jwak...@redhat.com> Date: Thu Jul 22 14:37:24 2021 +0100 libstdc++: Use std::addressof in ranges::uninitialized_xxx [PR101571] Make the ranges::uninitialized_xxx algorithms use std::addressof to protect against iterator types that overload operator&. Signed-off-by: Jonathan Wakely <jwak...@redhat.com> libstdc++-v3/ChangeLog: PR libstdc++/101571 * include/bits/ranges_uninitialized.h (_DestroyGuard): Change constructor parameter to reference and use addressof. * testsuite/util/testsuite_iterators.h: Define deleted operator& overloads for test iterators. (cherry picked from commit aca7a0253d6e3116f846ad530b19d89644a64267)