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
This commit is contained in:
Alexandre Petit-Bianco 2000-06-29 21:11:13 +00:00 committed by Alexandre Petit-Bianco
parent c011e2ad8a
commit 18ee3d5edb
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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