From patchwork Wed Oct 13 22:53:45 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 67746 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 50B03B70E6 for ; Thu, 14 Oct 2010 09:54:06 +1100 (EST) Received: (qmail 25491 invoked by alias); 13 Oct 2010 22:54:02 -0000 Received: (qmail 25476 invoked by uid 22791); 13 Oct 2010 22:54:02 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-wy0-f175.google.com (HELO mail-wy0-f175.google.com) (74.125.82.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 13 Oct 2010 22:53:48 +0000 Received: by wyb40 with SMTP id 40so1943253wyb.20 for ; Wed, 13 Oct 2010 15:53:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.5.21 with SMTP id 21mr643475wek.20.1287010425406; Wed, 13 Oct 2010 15:53:45 -0700 (PDT) Received: by 10.216.136.130 with HTTP; Wed, 13 Oct 2010 15:53:45 -0700 (PDT) Date: Wed, 13 Oct 2010 23:53:45 +0100 Message-ID: Subject: fix libstdc++/45990 From: Jonathan Wakely To: "libstdc++" , gcc-patches Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org This is Library Working Group issue 1337, which is still open but has got five votes for Tentatively Ready on the lib reflector ... and it's obviously right! Tested x86_64-linux (and Solaris by Rainer) - committed to trunk. PR libstdc++/45990 * include/bits/regex.h (regex_traits::isctype): DR 1337. Index: include/bits/regex.h =================================================================== --- include/bits/regex.h (revision 165437) +++ include/bits/regex.h (working copy) @@ -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:]]