With -D_GLIBCXX_DEBUG std::vector (aka std::__debug::vector) is not constexpr, so this test fails.
The master branch has been updated by Jonathan Wakely <redi@gcc.gnu.org>: https://gcc.gnu.org/g:5706a5db88a0eeaf82071debe1364f4533896a65 commit r12-7470-g5706a5db88a0eeaf82071debe1364f4533896a65 Author: Jonathan Wakely <jwakely@redhat.com> Date: Thu Mar 3 22:28:48 2022 +0000 libstdc++: Use non-debug vector in constexpr test [PR104748] The std::__debug::vector isn't usable in constant expressions, so this test fails in debug mode. Until the debug vector is fixed we can just make the test use the non-debug one. libstdc++-v3/ChangeLog: PR libstdc++/104748 * testsuite/std/ranges/adaptors/all.cc: Use non-debug vector for constexpr test.
The test no longer FAILs, but we should still make the debug vector usable in constant expressions (by disabling its iterator tracking).
(In reply to Jonathan Wakely from comment #2) > The test no longer FAILs, but we should still make the debug vector usable > in constant expressions (by disabling its iterator tracking). That was done by r14-8252-g3d3145e9e1461e (and earlier related commits).