This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: pthread_cancel and C++11
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: NightStrike <nightstrike at gmail dot com>
- Cc: John Saxton <john dot saxton at elementaltechnologies dot com>, gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Wed, 12 Aug 2015 10:03:00 +0100
- Subject: Re: pthread_cancel and C++11
- Authentication-results: sourceware.org; auth=none
- References: <CANZ7fQ+1h4Uw8pQ9qN8mhBkRb2d0HUGGWS2u892sBGg_wbmPHg at mail dot gmail dot com> <CAH6eHdRx19DQjAeAgw9L-nS+E0L7XMNtTC=L7FDY=ZWoSBykeQ at mail dot gmail dot com> <CAF1jjLsP9p8Eyee6Ok0V7aX5d7JdzSMRdOgVTR=ZS-f4YGJQpg at mail dot gmail dot com>
On 12 August 2015 at 02:43, NightStrike wrote:
> You had a suggestion a few years ago:
>
> https://gcc.gnu.org/ml/libstdc++/2012-12/msg00062.html
That change was made years ago, and is in GCC 4.8, but it doesn't help here.
The problem John described is that the forced_unwind exception never
even reaches that top-level catch handler if it is thrown while
running a noexcept destructor.