diff options
author | Jason Merrill <jason@redhat.com> | 2015-05-05 22:25:01 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2015-05-05 22:25:01 -0400 |
commit | 8243e2a9d0a466a907459d1b04d2d20027e5ef9b (patch) | |
tree | 9ad11d8e374ad72b911037b02842a64b8871323b /libstdc++-v3 | |
parent | 81b6a6c55bd5b2549dbaa16a87e736c4c8ac1bf5 (diff) | |
download | gcc-8243e2a9d0a466a907459d1b04d2d20027e5ef9b.zip gcc-8243e2a9d0a466a907459d1b04d2d20027e5ef9b.tar.gz gcc-8243e2a9d0a466a907459d1b04d2d20027e5ef9b.tar.bz2 |
c.opt (Wterminate): New.
gcc/c-family/
* c.opt (Wterminate): New.
gcc/cp/
* cp-gimplify.c (cp_genericize_r): Track TRY_BLOCK and
MUST_NOT_THROW_EXPR, warn about a THROW_EXPR directly within a
MUST_NOT_THROW_EXPR.
(cp_genericize_data): Add try_block field.
(cp_genericize_tree): Initialize it.
* except.c (expand_end_catch_block): Set TREE_NO_WARNING on
implicit rethrow.
From-SVN: r222842
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/testsuite/30_threads/lock_guard/cons/1.cc | 2 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/util/replacement_memory_operators.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/testsuite/30_threads/lock_guard/cons/1.cc b/libstdc++-v3/testsuite/30_threads/lock_guard/cons/1.cc index 4219782a..6d99c27 100644 --- a/libstdc++-v3/testsuite/30_threads/lock_guard/cons/1.cc +++ b/libstdc++-v3/testsuite/30_threads/lock_guard/cons/1.cc @@ -27,7 +27,7 @@ struct Mutex { Mutex() : locked(false) { } - ~Mutex() + ~Mutex() throw(int) { if (locked) throw 0; diff --git a/libstdc++-v3/testsuite/util/replacement_memory_operators.h b/libstdc++-v3/testsuite/util/replacement_memory_operators.h index 0bfa3fc..06d955a 100644 --- a/libstdc++-v3/testsuite/util/replacement_memory_operators.h +++ b/libstdc++-v3/testsuite/util/replacement_memory_operators.h @@ -32,7 +32,7 @@ namespace __gnu_test counter() : _M_count(0), _M_throw(true) { } - ~counter() + ~counter() throw (counter_error) { if (_M_throw && _M_count != 0) throw counter_error(); |