diff options
author | Alexandre Petit-Bianco <apbianco@cygnus.com> | 2000-06-29 21:11:13 +0000 |
---|---|---|
committer | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 2000-06-29 14:11:13 -0700 |
commit | 18ee3d5edb7f479c5554a7f1e5e0f90025446ff1 (patch) | |
tree | 0edd162785cba88279047fb59325f8bfac6ebdd1 /gcc/java/expr.c | |
parent | c011e2ad8adc191c6c38089cf05ae9f3daaf5a08 (diff) | |
download | gcc-18ee3d5edb7f479c5554a7f1e5e0f90025446ff1.zip gcc-18ee3d5edb7f479c5554a7f1e5e0f90025446ff1.tar.gz gcc-18ee3d5edb7f479c5554a7f1e5e0f90025446ff1.tar.bz2 |
expr.c (lookup_field): The same field can be found through two different interface.
2000-06-27 Alexandre Petit-Bianco <apbianco@cygnus.com>
* expr.c (lookup_field): The same field can be found through two
different interface. Don't declare it ambiguous in that case.
From-SVN: r34793
Diffstat (limited to 'gcc/java/expr.c')
-rw-r--r-- | gcc/java/expr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/java/expr.c b/gcc/java/expr.c index 144eee9..5b9b729 100644 --- a/gcc/java/expr.c +++ b/gcc/java/expr.c @@ -1361,6 +1361,8 @@ lookup_field (typep, name) tree t = BINFO_TYPE (TREE_VEC_ELT (basetype_vec, i)); if ((field = lookup_field (&t, name))) { + if (save_field == field) + continue; if (save_field == NULL_TREE) save_field = field; else |