aboutsummaryrefslogtreecommitdiff
path: root/libffi/src
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2022-12-21 09:04:06 +0100
committerJakub Jelinek <jakub@redhat.com>2022-12-21 09:04:06 +0100
commit3102b57f3105a301e54d7dc0586eb8e2b1724891 (patch)
treeaf1e5e2f4ddba0802b76d01374c9096bca48501c /libffi/src
parent18fc70aa9c753d17c00211cea9fa5bd843fe94fd (diff)
downloadgcc-3102b57f3105a301e54d7dc0586eb8e2b1724891.zip
gcc-3102b57f3105a301e54d7dc0586eb8e2b1724891.tar.gz
gcc-3102b57f3105a301e54d7dc0586eb8e2b1724891.tar.bz2
libstdc++: Don't call 4-5 argument to_chars with chars_format{}
In Fedora build libstdc++.so is built with assertions enabled and FAIL: 20_util/to_chars/float128_c++23.cc execution test was failing on all arches. The problem is that it called 5 argument version of to_chars with chars_format{}, which C++ says is invalid: http://eel.is/c++draft/charconv.to.chars#12 Preconditions: fmt has the value of one of the enumerators of chars_format. The following patch fixes it by skipping the second part of the test which needs the 5 argument to_chars for chars_format{}, but because it is strictly speaking invalid also for 4 argument to_chars, it uses 3 argument to_chars instead of 4 argument to_chars with last argument chars_format{}. 2022-12-21 Jakub Jelinek <jakub@redhat.com> * testsuite/20_util/to_chars/float16_c++23.cc (test): Use 3 argument std::to_chars if fmt is std::chars_format{}, rather than 4 argument. * testsuite/20_util/to_chars/float128_c++23.cc (test): Likewise, and skip second part of testing that requires 5 argument std::to_chars.
Diffstat (limited to 'libffi/src')
0 files changed, 0 insertions, 0 deletions