From patchwork Wed Oct 8 09:05:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 397568 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 0BAA9140095 for ; Wed, 8 Oct 2014 20:05:57 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=frMyaOIRDIlxXTjt9wXk7K3f5YweyjNKs9jRbe+/dlBPPDhGigxLc QY81cDg7ek1KtRDriaxW5OHlFXn3sg0fIEEl1RfmMuBQDcYYuDavcQewGHykfxSc UxpOY4jjD0tf2s/4fuMvsj/2oMx5PMLixkO9BS6o+7JVR8vEmiGJjA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=EY7CVb8K1oqd8ZN+plhWFG+JVQA=; b=fYCX3qn8EDaxX/CBdZi9 C0RW1Hs44ee6SJeX1AVJIm8hnyHtHa79LqFPkHf2mgQaMRF3MmT6wI6f4IbV4RAL G50hFSxL5Ybd1y84G3Weu0mqkBrJ3LgdZvSehav6vwJeGWRpAiLfmMx2gaq5JHTX WBMSwN7mFejZNxIQ+v0tlfI= Received: (qmail 19702 invoked by alias); 8 Oct 2014 09:05:50 -0000 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 Received: (qmail 19683 invoked by uid 89); 8 Oct 2014 09:05:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 08 Oct 2014 09:05:46 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s9895jR1021499 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 8 Oct 2014 05:05:45 -0400 Received: from localhost (ovpn-116-121.ams2.redhat.com [10.36.116.121]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s9895i0E015632; Wed, 8 Oct 2014 05:05:44 -0400 Date: Wed, 8 Oct 2014 10:05:43 +0100 From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [patch] Add const to constexpr member function in regex.h Message-ID: <20141008090543.GU4197@redhat.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) In C++14 constexpr member functions are no longer implicitly const. Tested x86_64-linux, committed to trunk and 4.9 commit 63d852cc56aa0f44ee0f770594c79705331933ec Author: Jonathan Wakely Date: Wed Oct 8 09:34:15 2014 +0100 * include/bits/regex.h (regex_token_iterator::_M_end_of_seq): Add const qualifier. diff --git a/libstdc++-v3/include/bits/regex.h b/libstdc++-v3/include/bits/regex.h index 4ec20d7..4244f2e 100644 --- a/libstdc++-v3/include/bits/regex.h +++ b/libstdc++-v3/include/bits/regex.h @@ -2689,7 +2689,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } constexpr bool - _M_end_of_seq() + _M_end_of_seq() const { return _M_result == nullptr; } _Position _M_position;