From patchwork Thu Jan 1 03:59:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Shen X-Patchwork-Id: 424873 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 A7C34140187 for ; Thu, 1 Jan 2015 15:00:04 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; q=dns; s=default; b=Q52mM0azApE4dL0IOR dTj11lJuIYCelrAmjppU4DTTRgxLcIprIhNLoI6j7vLsNh0RMTBotxOUUleIqxHR OF9mYYGKBuyswSjSYGP6/WO0fJZ+0leS6vRLgmze/6zB889kX3uPIMG1bsVGRkEl 8nTdvbWxc9tZfmnBwQMSTlIXs= 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 :mime-version:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; s=default; bh=9sem4xUYUZMOJI5HlSjtjMlR 7Sk=; b=XlCocUWqMsqVJ2XmxsWVgxoWdDy4Pt32l/jU5xM8oEpktMEPS8Hjm5ZI kdkKoWG15roBA1bucZ73dFAehTwasDS6MH26BN41PjCBk3SHt1GgzPH05YpInO7W 94/2hnRlNWgPQfXjlWx3Taq2iwMX30cc72eNpUq3oys8BoM0ZzY= Received: (qmail 8991 invoked by alias); 1 Jan 2015 03:59:46 -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 8962 invoked by uid 89); 1 Jan 2015 03:59:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mail-qa0-f46.google.com Received: from mail-qa0-f46.google.com (HELO mail-qa0-f46.google.com) (209.85.216.46) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 01 Jan 2015 03:59:41 +0000 Received: by mail-qa0-f46.google.com with SMTP id w8so11667848qac.5 for ; Wed, 31 Dec 2014 19:59:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=4e7IfMzfUA0s9hv7ysC/lWFlx52QqlTZalV8yP0kyVQ=; b=BlxTyghxkX2115Bb+qKSKXYzSF4EkTUG/XGx8SJGZFwtOTAG5KbPtjzPExgkyWFv4u +12cffOeeqiYkWUfJNVQtzdaVczp6RVK1yrD7uoyCGj7flhoHtoUYrpJlM4LQ8Ta8gSG bHYzkxVZYGIO7Mlk0dR652agbcXPCGysGRjEZ1amKXf2cp+MYVW3Na0XDSDvgrlRMZ5n 7MkDYxvSF7VSq4dTm/ScvHOUOpxpcpZ9If6Aj/rZKskZ+qa0RQ74QkotP7gi2DjIo905 lozwbEyLDZjJ+geB6tM4yAbZZDvQDppFf17aiTWx5ZinDg+J0wcRlMhrDhenlg/YlH/N 5K1w== X-Gm-Message-State: ALoCoQmvv20DwUeV+U/VQ351JCLtSv2bRvoORZnlVEOBNcWP/vb4aZAnRCGdi7hkLEdVocsX972K MIME-Version: 1.0 X-Received: by 10.140.46.37 with SMTP id j34mr85624909qga.12.1420084779197; Wed, 31 Dec 2014 19:59:39 -0800 (PST) Received: by 10.96.254.231 with HTTP; Wed, 31 Dec 2014 19:59:39 -0800 (PST) In-Reply-To: References: Date: Wed, 31 Dec 2014 19:59:39 -0800 Message-ID: Subject: Re: [Patch, libstdc++/64441] Fix sub_match::first and second From: Tim Shen To: David Edelsohn Cc: Jonathan Wakely , GCC Patches , "libstdc++@gcc.gnu.org" On Wed, Dec 31, 2014 at 4:17 PM, David Edelsohn wrote: > FAIL: 28_regex/algorithms/regex_match/ecma/char/backref.cc execution test > > on AIX. Oops, a dumb mistake from fixing a dumb mistake. Thanks David! :) Bootstrapped and tested. diff --git a/libstdc++-v3/include/bits/regex_executor.tcc b/libstdc++-v3/include/bits/regex_executor.tcc index 7954d06..a973667 100644 --- a/libstdc++-v3/include/bits/regex_executor.tcc +++ b/libstdc++-v3/include/bits/regex_executor.tcc @@ -310,7 +310,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION if (!__submatch.matched) break; auto __last = _M_current; - for (auto& __tmp = __submatch.first; + for (auto __tmp = __submatch.first; __last != _M_end && __tmp != __submatch.second; ++__tmp) ++__last;