[PATCH] Fix _GLIBCXX_DEBUG tests
François Dumont
frs.dumont@gmail.com
Sun Dec 13 14:52:13 GMT 2020
Some tests are XPASS because array assertions have been disabled for a
good reason in C++11.
I wonder if the respective non-constexpr _GLIBCXX_ASSERTION checks
shouldn't target C++14 too. At the moment they are failing as expected
but because of an Undefined Behavior no ?
The other test is failing because of some cleanup in headers which makes
<memory> include necessary.
libstdc++: Fix several _GLIBCXX_DEBUG tests
libstdc++-v3/ChangeLog:
* testsuite/23_containers/array/debug/back2_neg.cc: target
c++14 because assertion
for constexpr is disabled in C++11.
* testsuite/23_containers/array/debug/front2_neg.cc: Likewise.
*
testsuite/23_containers/array/debug/square_brackets_operator2_neg.cc:
Likewise.
*
testsuite/23_containers/vector/debug/multithreaded_swap.cc: Include <memory>
for shared_ptr.
Ok to commit ?
François
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debug.patch
Type: text/x-patch
Size: 2217 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20201213/91391a04/attachment.bin>
More information about the Libstdc++
mailing list