projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
364e1f1
)
(duplicate_decls): Check simple_cst_equal result against 0.
author
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 24 May 1995 19:46:27 +0000
(15:46 -0400)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 24 May 1995 19:46:27 +0000
(15:46 -0400)
From-SVN: r9803
gcc/cp/decl.c
patch
|
blob
|
history
diff --git
a/gcc/cp/decl.c
b/gcc/cp/decl.c
index 8ca4e232afc21ea0b0d61061262ec2c9b4789679..9cd44cd5cacfd9c9472c36d9c13c085f5dc66ed0 100644
(file)
--- 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)
{