PR c++/80059 - ICE with noexcept and __transaction_atomic
authorMarek Polacek <polacek@redhat.com>
Mon, 20 Mar 2017 15:02:09 +0000 (15:02 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 20 Mar 2017 15:02:09 +0000 (15:02 +0000)
commit92377255c1a2591085f9cd87e4ddc4bd34ba17a5
treee6d18fb9dc27873baedf50eb40857bd031e0b288
parenta74560ebeb9e088e410139595a6ca74f6720b502
PR c++/80059 - ICE with noexcept and __transaction_atomic

PR c++/80059 - ICE with noexcept and __transaction_atomic
* except.c (build_must_not_throw_expr): Call
instantiate_non_dependent_expr_sfinae.

* g++.dg/tm/pr80059-2.C: New test.
* g++.dg/tm/pr80059.C: New test.

Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com>
From-SVN: r246279
gcc/cp/ChangeLog
gcc/cp/except.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/tm/pr80059-2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/tm/pr80059.C [new file with mode: 0644]