libstdc++: Disable std::formatter specializations (LWG 3944)
commit543585046d17add37c0108b06d2884d0e03cedde
authorJonathan Wakely <jwakely@redhat.com>
Thu, 21 Mar 2024 11:15:06 +0000 (21 11:15 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Sat, 23 Mar 2024 11:07:57 +0000 (23 11:07 +0000)
tree834ee3ae39143ee53af82e424d13d02a0603b654
parent3763fb8970d7515a4a3be2152604140965303031
libstdc++: Disable std::formatter specializations (LWG 3944)

This was just approved in Tokyo as a DR for C++23. It doesn't affect us
yet, because we don't implement the __cpp_lib_format_ranges features. We
can add the disabled specializations and add a testcase now though.

libstdc++-v3/ChangeLog:

* include/std/format (formatter): Disable specializations that
would allow sequences of narrow characters to be formatted as
wchar_t without conversion, as per LWG 3944.
* testsuite/std/format/formatter/lwg3944.cc: New test.
libstdc++-v3/include/std/format
libstdc++-v3/testsuite/std/format/formatter/lwg3944.cc [new file with mode: 0644]