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 | |
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')
-rw-r--r-- | gcc/java/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/java/expr.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index dba6dc4..a0d020d 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +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. + 2000-06-27 Tom Tromey <tromey@cygnus.com> * lex.c (java_lineterminator): Don't recognize \r after \n. If \r 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 |