https://gcc.gnu.org/g:6694282dd41a99d2d50a7710648dfc6080c9d67c
commit r13-9746-g6694282dd41a99d2d50a7710648dfc6080c9d67c Author: GCC Administrator <gccadmin@gcc.gnu.org> Date: Sat Jun 7 00:21:58 2025 +0000 Daily bump. Diff: --- gcc/DATESTAMP | 2 +- libstdc++-v3/ChangeLog | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP index c6de4e349988..a3a91b55b0f5 100644 --- a/gcc/DATESTAMP +++ b/gcc/DATESTAMP @@ -1 +1 @@ -20250606 +20250607 diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 7bc3a622f14e..6a0a0188a7f5 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,19 @@ +2025-06-06 Giuseppe D'Angelo <giuseppe.dang...@kdab.com> + + Backported from master: + 2025-02-07 Giuseppe D'Angelo <giuseppe.dang...@kdab.com> + + PR libstdc++/118160 + PR libstdc++/100249 + * include/bits/ranges_algo.h (__is_permutation_fn): Avoid a + dangling reference by storing the result of the iterator + dereference and the result of the projection in two distinct + variables, in order to lifetime-extend each one. + Forward the projected value to the predicate. + * testsuite/25_algorithms/is_permutation/constrained.cc: Add a + test with a range returning prvalues. Test it in a constexpr + context, in order to rely on the compiler to catch UB. + 2025-06-05 Giuseppe D'Angelo <giuseppe.dang...@kdab.com> Backported from master: