libstdc++: Fix failing test in debug mode
authorJonathan Wakely <jwakely@redhat.com>
Thu, 27 Feb 2020 17:22:50 +0000 (17:22 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 28 Feb 2020 12:58:14 +0000 (12:58 +0000)
commit86e2dc22c91a722d2624c0010d81f1ce4b911bbd
treeea5d5ba79aabfcf586f6daa672fc1afa593dcbf6
parent4707548ee8484bf1f8f0fdc4f2310b3a9ed5a10f
libstdc++: Fix failing test in debug mode

This fixes a failure due to a (correct) warning seen when testing with
-D_GLIBCXX_USE_CXX11_ABI=0 -D_GLIBCXX_ASSERTIONS:

include/bits/char_traits.h:365: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)'
specified bound 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]

FAIL: 21_strings/basic_string/cons/char/1.cc (test for excess errors)

* testsuite/21_strings/basic_string/cons/char/1.cc: Disable
-Wstringop-overflow warnings.
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/21_strings/basic_string/cons/char/1.cc