diff options
author | simartin <simartin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-04 19:50:54 +0000 |
---|---|---|
committer | simartin <simartin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-04 19:50:54 +0000 |
commit | 785359fcbccbf466886b7943e2373ed77c57bcd6 (patch) | |
tree | 981594d884c68c44b2891e4dea8293bb08740dde /gcc/cp/tree.c | |
parent | 626b33bbb4413c12337b31ecbacaf32137146376 (diff) | |
download | ppe42-gcc-785359fcbccbf466886b7943e2373ed77c57bcd6.tar.gz ppe42-gcc-785359fcbccbf466886b7943e2373ed77c57bcd6.zip |
2007-03-04 Simon Martin <simartin@users.sourceforge.net>
PR c++/30895
* tree.c (cp_tree_equal): Properly handle COMPLEX_CST trees.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122532 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/tree.c')
-rw-r--r-- | gcc/cp/tree.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index a5fac298007..b7e1d0f7dcc 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -1670,6 +1670,10 @@ cp_tree_equal (tree t1, tree t2) && !memcmp (TREE_STRING_POINTER (t1), TREE_STRING_POINTER (t2), TREE_STRING_LENGTH (t1)); + case COMPLEX_CST: + return cp_tree_equal (TREE_REALPART (t1), TREE_REALPART (t2)) + && cp_tree_equal (TREE_IMAGPART (t1), TREE_IMAGPART (t2)); + case CONSTRUCTOR: /* We need to do this when determining whether or not two non-type pointer to member function template arguments |