PR libstdc++/80624 satisfy invariant for char_traits<char16_t>::eof()
authorJonathan Wakely <jwakely@redhat.com>
Fri, 2 Jun 2017 18:35:37 +0000 (19:35 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 2 Jun 2017 18:35:37 +0000 (19:35 +0100)
commit4c19e432d63ec411dfab13294ac02af2ff11516c
tree22725a70454d80b6ac8bcfee93c8c8a34c4e29bb
parent0cbae4a7a23c0faf9c1e14ebd07e7b137b9b6792
PR libstdc++/80624 satisfy invariant for char_traits<char16_t>::eof()

PR libstdc++/80624
* doc/xml/manual/status_cxx2011.xml: Document to_int_type behaviour.
* include/bits/char_traits.h (char_traits<char16_t>::to_int_type):
Transform eof value to U+FFFD.
* testsuite/21_strings/char_traits/requirements/char16_t/eof.cc: New.
* testsuite/27_io/basic_streambuf/sgetc/char16_t/80624.cc: New.
* testsuite/27_io/basic_streambuf/sputc/char16_t/80624.cc: New.

From-SVN: r248843
libstdc++-v3/ChangeLog
libstdc++-v3/doc/xml/manual/status_cxx2011.xml
libstdc++-v3/include/bits/char_traits.h
libstdc++-v3/testsuite/21_strings/char_traits/requirements/char16_t/eof.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/basic_streambuf/sgetc/char16_t/80624.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/basic_streambuf/sputc/char16_t/80624.cc [new file with mode: 0644]