From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23182 invoked by alias); 2 Feb 2015 11:03:27 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 23148 invoked by uid 89); 2 Feb 2015 11:03:27 -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,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-la0-f43.google.com Received: from mail-la0-f43.google.com (HELO mail-la0-f43.google.com) (209.85.215.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 02 Feb 2015 11:03:26 +0000 Received: by mail-la0-f43.google.com with SMTP id q1so39498251lam.2; Mon, 02 Feb 2015 03:03:22 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.112.224.133 with SMTP id rc5mr14639558lbc.31.1422875002557; Mon, 02 Feb 2015 03:03:22 -0800 (PST) Received: by 10.112.56.207 with HTTP; Mon, 2 Feb 2015 03:03:22 -0800 (PST) In-Reply-To: <5f7f8711e5f9f1cdbbd63a00f6d11a3766eb2765.1422844158.git.public@hansmi.ch> References: <5f7f8711e5f9f1cdbbd63a00f6d11a3766eb2765.1422844158.git.public@hansmi.ch> Date: Mon, 02 Feb 2015 11:03:00 -0000 Message-ID: Subject: Re: [PATCH libstdc++] Fix for std::uncaught_exception (PR 62258) From: Jonathan Wakely To: Michael Hanselmann Cc: "libstdc++" , gcc-patches Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2015-02/txt/msg00042.txt.bz2 On 2 February 2015 at 02:37, Michael Hanselmann wrote: > Calls to `std::uncaught_exception` after calling > `std::rethrow_exception' always return `true' when > `std::uncaught_exception' should return `false' unless an exception is > in flight. `std::rethrow_exception' does not update > `__cxa_eh_globals::uncaughtExceptions' while the following call to > `__cxa_begin_catch' decrements it. This fixes PR 62258. The patch looks correct, but I think it can wait until the trunk reopens after the GCC 5 release.