Bug 104748 - debug mode: FAIL: std/ranges/adaptors/all.cc (test for excess errors)
Summary: debug mode: FAIL: std/ranges/adaptors/all.cc (test for excess errors)
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: libstdc++ (show other bugs)
Version: 12.0
: P3 normal
Target Milestone: 12.0
Assignee: Not yet assigned to anyone
URL:
Keywords: testsuite-fail
Depends on: 109536
Blocks:
  Show dependency treegraph
 
Reported: 2022-03-01 15:39 UTC by Jonathan Wakely
Modified: 2024-02-08 12:43 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2022-03-03 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Wakely 2022-03-01 15:39:00 UTC
With -D_GLIBCXX_DEBUG std::vector (aka std::__debug::vector) is not constexpr, so this test fails.
Comment 1 GCC Commits 2022-03-03 22:35:43 UTC
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.
Comment 2 Jonathan Wakely 2022-03-03 22:39:51 UTC
The test no longer FAILs, but we should still make the debug vector usable in constant expressions (by disabling its iterator tracking).
Comment 3 Jonathan Wakely 2024-02-08 12:43:47 UTC
(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).