From 405de314b88aec4ce832dc42d0ad237019ba66f7 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Wed, 13 Oct 2010 22:52:25 +0000 Subject: [PATCH] re PR libstdc++/45990 (28_regex/07_traits/char/isctype.cc XPASSes on Solaris 2/IRIX 6) PR libstdc++/45990 * include/bits/regex.h (regex_traits::isctype): DR 1337. From-SVN: r165438 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/include/bits/regex.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index eadf65b3..8c5da55 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2010-10-13 Jonathan Wakely + + PR libstdc++/45990 + * include/bits/regex.h (regex_traits::isctype): DR 1337. + 2010-10-13 Paolo Carlini * include/bits/random.h (discrete_distribution<>::param_type:: diff --git a/libstdc++-v3/include/bits/regex.h b/libstdc++-v3/include/bits/regex.h index bbec88c..64d4407 100644 --- a/libstdc++-v3/include/bits/regex.h +++ b/libstdc++-v3/include/bits/regex.h @@ -287,7 +287,7 @@ namespace std const ctype<_Ch_type>& __ctype(use_facet< ctype<_Ch_type> >(_M_locale)); - if (__ctype.is(__c, __f)) + if (__ctype.is(__f, __c)) return true; // special case of underscore in [[:w:]] -- 2.7.4