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
This commit is contained in:
parent
0e4c913f53
commit
4ec21835cb
3 changed files with 11 additions and 4 deletions
|
@ -1,3 +1,10 @@
|
|||
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>
|
||||
|
||||
* testsuite/util/testsuite_abi.cc (check_version): Update for
|
||||
|
|
|
@ -678,7 +678,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
|||
|
||||
if (__ctype.is(__c, __f))
|
||||
return true;
|
||||
|
||||
#if 0
|
||||
// special case of underscore in [[:w:]]
|
||||
if (__c == __ctype.widen('_'))
|
||||
{
|
||||
|
@ -698,7 +698,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
|||
if (__f | __bt)
|
||||
return true;
|
||||
}
|
||||
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -131,7 +131,7 @@ namespace __gnu_test
|
|||
|
||||
// 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,
|
||||
// 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,
|
||||
typename _Ch_type, typename _Rx_traits>
|
||||
bool
|
||||
|
@ -153,7 +153,7 @@ namespace __gnu_test
|
|||
// __m is unspecified if return value is false.
|
||||
if (__res1 == __res2 && (!__res1 || __m == __mm))
|
||||
return __res1;
|
||||
throw(std::exception());
|
||||
throw std::exception();
|
||||
}
|
||||
|
||||
// No match_results version
|
||||
|
|
Loading…
Add table
Reference in a new issue