tree.c (cp_tree_equal): Deal with TRAIT_EXPR.
2007-04-09 Paolo Carlini <pcarlini@suse.de> * tree.c (cp_tree_equal): Deal with TRAIT_EXPR. From-SVN: r123673
This commit is contained in:
parent
70275c384c
commit
ea798d0f66
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2007-04-09 Paolo Carlini <pcarlini@suse.de>
|
||||
|
||||
* tree.c (cp_tree_equal): Deal with TRAIT_EXPR.
|
||||
|
||||
2007-04-08 Steven Bosscher <steven@gcc.gnu.org>
|
||||
|
||||
* cp-objcp-common.h (LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS):
|
||||
|
|
|
@ -1828,6 +1828,12 @@ cp_tree_equal (tree t1, tree t2)
|
|||
return false;
|
||||
return cp_tree_equal (OVL_CHAIN (t1), OVL_CHAIN (t2));
|
||||
|
||||
case TRAIT_EXPR:
|
||||
if (TRAIT_EXPR_KIND (t1) != TRAIT_EXPR_KIND (t2))
|
||||
return false;
|
||||
return same_type_p (TRAIT_EXPR_TYPE1 (t1), TRAIT_EXPR_TYPE1 (t2))
|
||||
&& same_type_p (TRAIT_EXPR_TYPE2 (t1), TRAIT_EXPR_TYPE2 (t2));
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue