diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 68197d6d898..eca95941c4b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2002-10-02 Matt Austern + * cp/decl.c (walk_vtables_r): Fixed typo that caused result to + never get a nonzero value. + Wed Oct 2 17:01:36 CEST 2002 Jan Hubicka * i386.c (print_operand_address): Use RIP addressing for offsetted diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 7375fde7240..4c8dbc40876 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -1793,7 +1793,7 @@ walk_vtables_r (namespace, data) int result = 0; for (; decl ; decl = TREE_CHAIN (decl)) - result != (*f) (&decl, d); + result |= (*f) (&decl, d); return result; }