summaryrefslogtreecommitdiff
path: root/gcc/cp/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/tree.c')
-rw-r--r--gcc/cp/tree.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c
index df2981fd3f..5b15e9ce52 100644
--- a/gcc/cp/tree.c
+++ b/gcc/cp/tree.c
@@ -3139,6 +3139,11 @@ cp_tree_equal (tree t1, tree t2)
return cp_tree_equal (CI_ASSOCIATED_CONSTRAINTS (t1),
CI_ASSOCIATED_CONSTRAINTS (t2));
+ case CHECK_CONSTR:
+ return (CHECK_CONSTR_CONCEPT (t1) == CHECK_CONSTR_CONCEPT (t2)
+ && comp_template_args (CHECK_CONSTR_ARGS (t1),
+ CHECK_CONSTR_ARGS (t2)));
+
case TREE_VEC:
{
unsigned ix;