aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/except.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2017-06-16 14:43:20 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2017-06-16 14:43:20 +0000
commit0d1dc5862f978beb28c76b91b137ccc23f747498 (patch)
tree008d36677165ca97125bd44718c610d4e8d5a989 /gcc/cp/except.c
parent6a2dfd9a66a678b26c762d0fc614fea267ea706b (diff)
downloadgcc-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.c12
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 */