aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog6
-rw-r--r--gcc/cp/tree.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 7765c73..06659aa 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,9 @@
+2009-10-14 Larry Evans <cppljevans@suddenlink.net>
+
+ PR c++/40092
+ * tree.c (cp_tree_equal): Add test for TEMPLATE_PARM_PARAMETER_PACK
+ equality.
+
2009-10-12 Jason Merrill <jason@redhat.com>
PR c++/37875
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c
index 7676373..99ce656 100644
--- a/gcc/cp/tree.c
+++ b/gcc/cp/tree.c
@@ -2081,6 +2081,8 @@ cp_tree_equal (tree t1, tree t2)
case TEMPLATE_PARM_INDEX:
return (TEMPLATE_PARM_IDX (t1) == TEMPLATE_PARM_IDX (t2)
&& TEMPLATE_PARM_LEVEL (t1) == TEMPLATE_PARM_LEVEL (t2)
+ && (TEMPLATE_PARM_PARAMETER_PACK (t1)
+ == TEMPLATE_PARM_PARAMETER_PACK (t2))
&& same_type_p (TREE_TYPE (TEMPLATE_PARM_DECL (t1)),
TREE_TYPE (TEMPLATE_PARM_DECL (t2))));