Commit 4ec21835 by Jonathan Wakely Committed by Jonathan Wakely

re PR libstdc++/60958 (Initialization of arrays in tr1/regex ill-formed or with…

re PR libstdc++/60958 (Initialization of arrays in tr1/regex ill-formed or with undefined behaviour)

	PR libstdc++/60958
	* include/tr1/regex (regex_traits::isctype): Comment out broken code.
	* testsuite/util/testsuite_regex.h (regex_match_debug): Improve
	comment.

From-SVN: r209807
parent 0e4c913f
2014-04-25 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/60958
* include/tr1/regex (regex_traits::isctype): Comment out broken code.
* testsuite/util/testsuite_regex.h (regex_match_debug): Improve
comment.
2014-04-25 Marc Glisse <marc.glisse@inria.fr> 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
* testsuite/util/testsuite_abi.cc (check_version): Update for * testsuite/util/testsuite_abi.cc (check_version): Update for
......
...@@ -678,7 +678,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -678,7 +678,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
if (__ctype.is(__c, __f)) if (__ctype.is(__c, __f))
return true; return true;
#if 0
// special case of underscore in [[:w:]] // special case of underscore in [[:w:]]
if (__c == __ctype.widen('_')) if (__c == __ctype.widen('_'))
{ {
...@@ -698,7 +698,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -698,7 +698,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
if (__f | __bt) if (__f | __bt)
return true; return true;
} }
#endif
return false; return false;
} }
......
...@@ -131,7 +131,7 @@ namespace __gnu_test ...@@ -131,7 +131,7 @@ namespace __gnu_test
// regex_match_debug behaves like regex_match, but will run *two* executors // regex_match_debug behaves like regex_match, but will run *two* executors
// (if there's no back-reference) and check if their results agree. If not, // (if there's no back-reference) and check if their results agree. If not,
// an exception throws. One can use them just in the way of using regex_match. // an exception is thrown. The arguments are the same as for regex_match.
template<typename _Bi_iter, typename _Alloc, template<typename _Bi_iter, typename _Alloc,
typename _Ch_type, typename _Rx_traits> typename _Ch_type, typename _Rx_traits>
bool bool
...@@ -153,7 +153,7 @@ namespace __gnu_test ...@@ -153,7 +153,7 @@ namespace __gnu_test
// __m is unspecified if return value is false. // __m is unspecified if return value is false.
if (__res1 == __res2 && (!__res1 || __m == __mm)) if (__res1 == __res2 && (!__res1 || __m == __mm))
return __res1; return __res1;
throw(std::exception()); throw std::exception();
} }
// No match_results version // No match_results version
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment