[Bug c++/58635] [c++11] ICE with __transaction_atomic and noexcept(false)
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Oct 9 14:51:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58635
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Wed Oct 9 14:51:28 2013
New Revision: 203323
URL: http://gcc.gnu.org/viewcvs?rev=203323&root=gcc&view=rev
Log:
PR c++/58635
cp/
* semantics.c (finish_return_stmt): Return error_mark_node
when error_operand_p of the expr is true.
(build_transaction_expr): Check for EXPR_P before setting the
expr location.
testsuite/
* g++.dg/tm/pr58635-1.C: New test.
* g++.dg/tm/pr58635-2.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/tm/pr58635-1.C
trunk/gcc/testsuite/g++.dg/tm/pr58635-2.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list