OSDN Git Service

(duplicate_decls): Check simple_cst_equal result against 0.
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 May 1995 19:46:27 +0000 (19:46 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 May 1995 19:46:27 +0000 (19:46 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9803 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/decl.c

index 8ca4e23..9cd44cd 100644 (file)
@@ -2532,7 +2532,8 @@ duplicate_decls (newdecl, olddecl)
               t1 = TREE_CHAIN (t1), t2 = TREE_CHAIN (t2), i++)
            if (TREE_PURPOSE (t1) && TREE_PURPOSE (t2))
              {
-               if (simple_cst_equal (TREE_PURPOSE (t1), TREE_PURPOSE (t2)))
+               if (1 == simple_cst_equal (TREE_PURPOSE (t1),
+                                          TREE_PURPOSE (t2)))
                  {
                    if (pedantic)
                      {