From 2507f3b50d4a0c0697e25c2eeed3a71d65586f1c Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Wed, 24 May 1995 15:46:27 -0400 Subject: [PATCH] (duplicate_decls): Check simple_cst_equal result against 0. From-SVN: r9803 --- gcc/cp/decl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.30.2