The following test case reports the wrong error message:
public class Local2
int i = q;
$ gcj -c Local2.java
Local2.java: In class `Local2$I':
Local2.java: In method `Local2$I.j()':
Local2.java:7: Local variable `q' can't be accessed from within the inner class `Local2$I' unless it is declared final.
From: Dara Hazeghi <email@example.com>
To: firstname.lastname@example.org, email@example.com
Subject: Re: java/4811: Incorrect error accessing non-existant outer field
Date: Mon, 12 May 2003 11:43:34 -0700
I can confirm that this problem still occurs on gcc 3.2, 3.3 branch and
*** Bug 8432 has been marked as a duplicate of this bug. ***
All gcj front end bugs have been fixed by the gcj-eclipse branch merge.
I'm mass-closing the affected PRs.
If you believe one of these was closed in error, please reopen it
with a note explaining why.