re PR c++/58635 ([c++11] ICE with __transaction_atomic and noexcept(false))
authorMarek Polacek <polacek@redhat.com>
Wed, 9 Oct 2013 14:51:28 +0000 (14:51 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 9 Oct 2013 14:51:28 +0000 (14:51 +0000)
commit830ce0a2b345f6d176d9b398892fb3fbbe9706b0
tree269b4a41b7508b900bde3328f55991c3dcb2d0a1
parent1dd2a9a0f34de177e1d27ea330f8050621c26b61
re PR c++/58635 ([c++11] ICE with __transaction_atomic and noexcept(false))

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.

From-SVN: r203323
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/tm/pr58635-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/tm/pr58635-2.C [new file with mode: 0644]