aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl.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/decl.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/decl.c')
-rw-r--r--gcc/cp/decl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 04418a1..b6e8547 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -4078,6 +4078,8 @@ cxx_init_decl_processing (void)
empty_except_spec = build_tree_list (NULL_TREE, NULL_TREE);
noexcept_true_spec = build_tree_list (boolean_true_node, NULL_TREE);
noexcept_false_spec = build_tree_list (boolean_false_node, NULL_TREE);
+ noexcept_deferred_spec = build_tree_list (make_node (DEFERRED_NOEXCEPT),
+ NULL_TREE);
#if 0
record_builtin_type (RID_MAX, NULL, string_type_node);