From: Richard Kenner Date: Wed, 24 May 1995 19:46:27 +0000 (-0400) Subject: (duplicate_decls): Check simple_cst_equal result against 0. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2507f3b50d4a0c0697e25c2eeed3a71d65586f1c;p=gcc.git (duplicate_decls): Check simple_cst_equal result against 0. From-SVN: r9803 --- diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 8ca4e232afc..9cd44cd5cac 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -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) {