This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/61199] [trans-mem] _cxa_free_exception is not transaction safe
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 09 Jun 2014 19:54:14 +0000
- Subject: [Bug middle-end/61199] [trans-mem] _cxa_free_exception is not transaction safe
- Auto-submitted: auto-generated
- References: <bug-61199-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61199
--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> ---
Since we have a TM wrapper for __cxa_allocate_exception, it seems reasonable to
have one for __cxa_free_exception as well.
In the testcase, we free the allocated 'bar' exception when the copy
constructor throws an 'int' exception, and then the 'int' exception propagates
out of foo.