An inner class that references a static variable in an outer class will fail if the super class of that outer class defines the same variable with a visibility that makes it inaccessible to the inner class.
Created attachment 8271 [details] Java class that illustrates the problem. Try gcj -c ScopeProblem.java. It fails with: ScopeProblem.java:12: error: Can't access package-private field ...
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. Thanks.