* tree.c (cp_tree_equal) [TRAIT_EXPR]: Use cp_tree_equal for type2.
authorJason Merrill <jason@redhat.com>
Wed, 8 Oct 2014 00:25:35 +0000 (20:25 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 8 Oct 2014 00:25:35 +0000 (20:25 -0400)
From-SVN: r215991

gcc/cp/ChangeLog
gcc/cp/tree.c

index 10084c4903a100176afb872c12d8c3086ba18768..77a825e86f8788fbbfcabdc3cbe687c5b0006e13 100644 (file)
@@ -1,3 +1,7 @@
+2014-10-07  Jason Merrill  <jason@redhat.com>
+
+       * tree.c (cp_tree_equal) [TRAIT_EXPR]: Use cp_tree_equal for type2.
+
 2014-10-06  Edward Smith-Rowland  <3dw4rd@verizon.net>
 
        * cp/parser.c: Allow [[deprecated]] for C++11.  Issue a pedwarn.
index 316c8ff8d40cb1b784930220799ceb8a63e97b63..cfb0ed8c2998bf82a56bb34ead8ab06c90124f14 100644 (file)
@@ -2891,7 +2891,7 @@ cp_tree_equal (tree t1, tree t2)
       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));
+       && cp_tree_equal (TRAIT_EXPR_TYPE2 (t1), TRAIT_EXPR_TYPE2 (t2));
 
     case CAST_EXPR:
     case STATIC_CAST_EXPR: