parse.y (build_outer_field_access): New local `decl_ctx', use it.
authorAlexandre Petit-Bianco <apbianco@cygnus.com>
Thu, 23 Nov 2000 06:04:16 +0000 (06:04 +0000)
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>
Thu, 23 Nov 2000 06:04:16 +0000 (22:04 -0800)
commit5e18f6d629b6956b5e669921073fe951f93d1fac
tree3c74edddfbfa61e4f31307fd8dda94eae1d5cea2
parent54214152bd83582233b1179ea9a6d924cd817499
parse.y (build_outer_field_access): New local `decl_ctx', use it.

2000-11-22  Alexandre Petit-Bianco  <apbianco@cygnus.com>

* parse.y (build_outer_field_access): New local `decl_ctx', use
it. Check for field's context and current class immediate outer
context inheritance.
(outer_field_access_p): Consider fields inherited from the last
enclosing context.
(build_access_to_thisn): Stop at the last enclosing context if
necessary.
Fixes gcj/367.

(http://gcc.gnu.org/ml/gcc-patches/2000-11/msg01335.html)

From-SVN: r37689
gcc/java/ChangeLog
gcc/java/parse.y