aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/cp/pt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index e4f56d8..5a0bd71 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -6287,7 +6287,7 @@ tsubst_friend_function (tree decl, tree args)
tree fn = check_classfn (context,
new_friend, NULL_TREE);
- if (fn)
+ if (fn && fn != error_mark_node)
new_friend = fn;
}
}