diff options
author | Nathan Sidwell <nathan@acm.org> | 2017-06-16 14:43:20 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2017-06-16 14:43:20 +0000 |
commit | 0d1dc5862f978beb28c76b91b137ccc23f747498 (patch) | |
tree | 008d36677165ca97125bd44718c610d4e8d5a989 /gcc/cp/except.c | |
parent | 6a2dfd9a66a678b26c762d0fc614fea267ea706b (diff) | |
download | gcc-0d1dc5862f978beb28c76b91b137ccc23f747498.zip gcc-0d1dc5862f978beb28c76b91b137ccc23f747498.tar.gz gcc-0d1dc5862f978beb28c76b91b137ccc23f747498.tar.bz2 |
Don't defer noexcept_deferred_spec.
* cp-tree.h (unevaluated_noexcept_spec): Don't declare.
* decl.c (cxx_init_decl_processing): Initialize
noexcept_deferred_spec.
* except.c (unevaluated_noexcept_spec): Delete.
* class.c (deduce_noexcept_on_destructor): Use
noexcept_deferred_spec directly.
* method.c (implicitly_declare_fn): Likewise.
From-SVN: r249264
Diffstat (limited to 'gcc/cp/except.c')
-rw-r--r-- | gcc/cp/except.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/gcc/cp/except.c b/gcc/cp/except.c index ab7ab5d..9e41ec4 100644 --- a/gcc/cp/except.c +++ b/gcc/cp/except.c @@ -1197,18 +1197,6 @@ build_noexcept_spec (tree expr, int complain) } } -/* Returns a noexcept-specifier to be evaluated later, for an - implicitly-declared or explicitly defaulted special member function. */ - -tree -unevaluated_noexcept_spec (void) -{ - if (!noexcept_deferred_spec) - noexcept_deferred_spec - = build_noexcept_spec (make_node (DEFERRED_NOEXCEPT), tf_none); - return noexcept_deferred_spec; -} - /* Returns a TRY_CATCH_EXPR that will put TRY_LIST and CATCH_LIST in the TRY and CATCH locations. CATCH_LIST must be a STATEMENT_LIST */ |