gcc/libstdc++-v3/testsuite/28_regex
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
..
algorithms Update copyright years. 2015-01-05 13:33:28 +01:00
basic_regex re PR libstdc++/64680 (basic_regex::operator= does not reset flags) 2015-01-22 05:07:03 +00:00
constants Update copyright years. 2015-01-05 13:33:28 +01:00
headers/regex Update copyright years. 2015-01-05 13:33:28 +01:00
iterators Update copyright years. 2015-01-05 13:33:28 +01:00
match_results 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
regex_error Update copyright years. 2015-01-05 13:33:28 +01:00
requirements Update copyright years. 2015-01-05 13:33:28 +01:00
sub_match Update copyright years. 2015-01-05 13:33:28 +01:00
traits re PR libstdc++/64467 (28_regex/traits/char/isctype.cc and wchar_t/isctype.cc) 2015-03-09 12:47:51 +00:00
init-list.cc Update copyright years. 2015-01-05 13:33:28 +01:00
range_access.cc Update copyright years. 2015-01-05 13:33:28 +01:00