gcc/libstdc++-v3/include/ext
Jonathan Wakely 4a88769c96 re PR libstdc++/65049 (Undefined behaviour with std::char_traits<char>)
PR libstdc++/65049
	* include/bits/char_traits.h (char_traits<char>::compare,
	char_traits<char>::find, char_traits<char>::move,
	char_traits<char>::copy, char_traits<char>::assign): Check for zero
	length.
	(char_traits<wchar_t>::compare, char_traits<wchar_t>::find,
	char_traits<wchar_t>::move, char_traits<wchar_t>::copy,
	char_traits<wchar_t>::assign): Likewise.
	(char_traits<char16_t>::move, char_traits<char16_t>::copy): Likewise.
	(char_traits<char32_t>::move, char_traits<char32_t>::copy): Likewise.
	* include/ext/pod_char_traits.h (char_traits<character<>>::move,
	char_traits<character<>>::copy): Likewise.
	* testsuite/21_strings/char_traits/requirements/char/65049.cc: New.
	* testsuite/21_strings/char_traits/requirements/char16_t/65049.cc:
	New.
	* testsuite/21_strings/char_traits/requirements/char32_t/65049.cc:
	New.
	* testsuite/21_strings/char_traits/requirements/wchar_t/65049.cc:
	New.

From-SVN: r227127
2015-08-24 14:43:54 +01:00
..
pb_ds functional_hash.h: Add specializations for __intN types. 2015-07-23 13:57:34 -04:00
algorithm Update copyright years. 2015-01-05 13:33:28 +01:00
aligned_buffer.h re PR libstdc++/66017 (Undefined behaviour in std::set<long long>) 2015-05-27 12:18:37 +01:00
alloc_traits.h c++config (_GLIBCXX_NOEXCEPT_IF): Define. 2015-07-13 18:15:48 +01:00
array_allocator.h Implement N4258 (Cleaning-up noexcept in the Library rev 3) 2015-06-26 21:10:24 +01:00
atomicity.h Use atomics in guard.cc. 2015-06-12 09:49:41 +00:00
bitmap_allocator.h Update copyright years. 2015-01-05 13:33:28 +01:00
cast.h Update copyright years. 2015-01-05 13:33:28 +01:00
cmath Update copyright years. 2015-01-05 13:33:28 +01:00
codecvt_specializations.h c++config (__gnu_cxx::__cxx11): Define new namespace. 2015-03-20 13:26:55 +00:00
concurrence.h Update copyright years. 2015-01-05 13:33:28 +01:00
debug_allocator.h Update copyright years. 2015-01-05 13:33:28 +01:00
enc_filebuf.h Update copyright years. 2015-01-05 13:33:28 +01:00
extptr_allocator.h Update copyright years. 2015-01-05 13:33:28 +01:00
functional Update copyright years. 2015-01-05 13:33:28 +01:00
iterator Update copyright years. 2015-01-05 13:33:28 +01:00
malloc_allocator.h Update copyright years. 2015-01-05 13:33:28 +01:00
memory Update copyright years. 2015-01-05 13:33:28 +01:00
mt_allocator.h Update copyright years. 2015-01-05 13:33:28 +01:00
new_allocator.h Update copyright years. 2015-01-05 13:33:28 +01:00
numeric Update copyright years. 2015-01-05 13:33:28 +01:00
numeric_traits.h Update copyright years. 2015-01-05 13:33:28 +01:00
pod_char_traits.h re PR libstdc++/65049 (Undefined behaviour with std::char_traits<char>) 2015-08-24 14:43:54 +01:00
pointer.h Update copyright years. 2015-01-05 13:33:28 +01:00
pool_allocator.h Update copyright years. 2015-01-05 13:33:28 +01:00
random Update copyright years. 2015-01-05 13:33:28 +01:00
random.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
rb_tree Update copyright years. 2015-01-05 13:33:28 +01:00
rc_string_base.h Update copyright years. 2015-01-05 13:33:28 +01:00
rope Update copyright years. 2015-01-05 13:33:28 +01:00
ropeimpl.h Update copyright years. 2015-01-05 13:33:28 +01:00
slist Update copyright years. 2015-01-05 13:33:28 +01:00
sso_string_base.h Update copyright years. 2015-01-05 13:33:28 +01:00
stdio_filebuf.h Update copyright years. 2015-01-05 13:33:28 +01:00
stdio_sync_filebuf.h Update copyright years. 2015-01-05 13:33:28 +01:00
string_conversions.h Update copyright years. 2015-01-05 13:33:28 +01:00
throw_allocator.h Update copyright years. 2015-01-05 13:33:28 +01:00
type_traits.h Update copyright years. 2015-01-05 13:33:28 +01:00
typelist.h Update copyright years. 2015-01-05 13:33:28 +01:00
vstring_fwd.h Update copyright years. 2015-01-05 13:33:28 +01:00
vstring_util.h Update copyright years. 2015-01-05 13:33:28 +01:00
vstring.h Update copyright years. 2015-01-05 13:33:28 +01:00
vstring.tcc Update copyright years. 2015-01-05 13:33:28 +01:00