This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Java: Fix for PR 4695
Bryce McKinlay writes:
> Well, this doesn't catch the case of trying to access the enclosing
> instance from the anonymous class, which is illegal.
No.
> So, I think we need a way to treat them as static but not actually
> set the ACC_STATIC for the emitted class.
Yes. Is there a PR covering this type of illegal access non-detection?
Otherwise, you're patch is good to go, along with the mod I suggested.
Thank you.
./A