[Bug java/8473] syntax error on anonymous array subscript

tromey at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Aug 13 20:23:00 GMT 2004


------- Additional Comments From tromey at gcc dot gnu dot org  2004-08-13 20:23 -------
Just a spec note: this is disallowed by one of the grammars
in the JLS, but is actually valid.  The Java Spec Report
is good on this (as so many other things):

http://www.ergnosis.com/java-spec-report/java-language/jls-15.13.html

A quick glance at parse.y indicates that our grammar simply
doesn't allow for this; it probably follows the incorrect part
of the JLS.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8473



More information about the Gcc-bugs mailing list