gcc/libstdc++-v3/include
Tim Shen 84839a5140 re PR libstdc++/64441 (A match_results returns an incorrect sub_match if the sub_match::matched is false)
PR libstdc++/64441
	* include/bits/regex.h (match_results<>::size,
	match_results<>::position, match_results<>::str,
	match_results<>::operator[], match_results<>::prefix,
	match_results<>::suffix, match_results<>::end,
	match_results<>::_M_resize, match_results<>::_M_unmatched_sub,
	match_results<>::_M_prefix, match_results<>::_M_suffix): Remove
	global __unmatched_sub. Add unmatched submatch as part of
	match_results.
	* include/bits/regex.tcc (__regex_algo_impl<>, regex_replace<>,
	regex_iterator<>::operator++): Adjust to use match_results::_M_prefix.
	* testsuite/28_regex/match_results/out_of_range_submatches.cc:
	New testcases.

From-SVN: r221330
2015-03-10 18:41:46 +00:00
..
backward Update copyright years. 2015-01-05 13:33:28 +01:00
bits re PR libstdc++/64441 (A match_results returns an incorrect sub_match if the sub_match::matched is false) 2015-03-10 18:41:46 +00:00
c Update copyright years. 2015-01-05 13:33:28 +01:00
c_compatibility Update copyright years. 2015-01-05 13:33:28 +01:00
c_global re PR libstdc++/64883 (FAIL: 17_intro/headers/c++*/all_attributes.cc (test for excess errors) on x86_64-apple-darwin10) 2015-02-01 15:11:08 +00:00
c_std re PR libstdc++/64883 (FAIL: 17_intro/headers/c++*/all_attributes.cc (test for excess errors) on x86_64-apple-darwin10) 2015-02-01 15:11:08 +00:00
debug Update copyright years. 2015-01-05 13:33:28 +01:00
decimal Update copyright years. 2015-01-05 13:33:28 +01:00
experimental re PR libstdc++/64650 (std::experimental::bad_optional_access is not default constructible) 2015-01-20 11:51:03 +00:00
ext atomic_base.h: Use __always_inline__ instead of always_inline. 2015-01-29 12:47:20 +00:00
parallel Update copyright years. 2015-01-05 13:33:28 +01:00
precompiled Update copyright years. 2015-01-05 13:33:28 +01:00
profile Update copyright years. 2015-01-05 13:33:28 +01:00
std future (future_error(error_code)): Construct base class with error_code's message. 2015-03-06 12:31:43 +00:00
tr1 Update copyright years. 2015-01-05 13:33:28 +01:00
tr2 Update copyright years. 2015-01-05 13:33:28 +01:00
Makefile.am locale_conv.h (wstring_convert, [...]): New. 2015-01-16 23:38:48 +00:00
Makefile.in locale_conv.h (wstring_convert, [...]): New. 2015-01-16 23:38:48 +00:00