libstdc++: diagnose some misuses of [locale.convenience] functions [PR 89728]
authorAntony Polukhin <antoshkka@gmail.com>
Mon, 17 May 2021 13:58:28 +0000 (14:58 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 17 May 2021 16:58:14 +0000 (17:58 +0100)
commitfd89fc77639a63a141dbbc6292dd73e653794d61
treef5011c4cb867ffe5264266951a6b0311942f0b58
parent60a156ae53e976dfe44689f7c89e607596e7cf67
libstdc++: diagnose some misuses of [locale.convenience] functions [PR 89728]

This patch provides better diagnostics for common misuse of
[locale.convenience] functions with std::string as a character type.

libstdc++-v3/ChangeLog:

PR libstdc++/89728
* include/bits/locale_facets.h (ctype<basic_string<C,T,A>>):
Declare (but do not define) partial specialization.
* testsuite/22_locale/ctype/is/string/89728_neg.cc: New test.
libstdc++-v3/include/bits/locale_facets.h
libstdc++-v3/testsuite/22_locale/ctype/is/string/89728_neg.cc [new file with mode: 0644]