]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Check string value_type in std::make_format_args [PR112607]
authorJonathan Wakely <jwakely@redhat.com>
Sat, 18 Nov 2023 20:56:35 +0000 (20:56 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 28 Nov 2023 16:59:23 +0000 (16:59 +0000)
commitc7c92d61d32f6fd7746e2844f68d1936e2b6f6f6
tree1770c7cae49048718d13c9ad7910542622f2a1b6
parent336e16b8b5f25b9dd731bef1c4f47e0cfbb37842
libstdc++: Check string value_type in std::make_format_args [PR112607]

libstdc++-v3/ChangeLog:

PR libstdc++/112607
* include/std/format (basic_format_arg::_S_to_arg_type): Check
value_type for basic_string_view and basic_string
specializations.
* testsuite/std/format/arguments/112607.cc: New test.

(cherry picked from commit 279e407a06cc676d8e6e0bb5755b0a804e05377c)
libstdc++-v3/include/std/format
libstdc++-v3/testsuite/std/format/arguments/112607.cc [new file with mode: 0644]