(duplicate_decls): Check simple_cst_equal result against 0.
authorRichard Kenner <kenner@gcc.gnu.org>
Wed, 24 May 1995 19:46:27 +0000 (15:46 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Wed, 24 May 1995 19:46:27 +0000 (15:46 -0400)
From-SVN: r9803

gcc/cp/decl.c

index 8ca4e232afc21ea0b0d61061262ec2c9b4789679..9cd44cd5cacfd9c9472c36d9c13c085f5dc66ed0 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)
                      {