This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/8473] syntax error on anonymous array subscript
- From: "tromey at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Aug 2004 20:23:14 -0000
- Subject: [Bug java/8473] syntax error on anonymous array subscript
- References: <20021105231600.8473.jmr@ugcs.caltech.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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