aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/method.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/method.c')
-rw-r--r--gcc/cp/method.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cp/method.c b/gcc/cp/method.c
index 477d3271..da9600c 100644
--- a/gcc/cp/method.c
+++ b/gcc/cp/method.c
@@ -2274,6 +2274,9 @@ after_nsdmi_defaulted_late_checks (tree t)
continue;
tree eh_spec = get_defaulted_eh_spec (fn);
+ if (eh_spec == error_mark_node)
+ continue;
+
if (!comp_except_specs (TYPE_RAISES_EXCEPTIONS (TREE_TYPE (fn)),
eh_spec, ce_normal))
DECL_DELETED_FN (fn) = true;