public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* java/8473: syntax error on anonymous array subscript
@ 2002-11-05 23:16 jmr
  0 siblings, 0 replies; only message in thread
From: jmr @ 2002-11-05 23:16 UTC (permalink / raw)
  To: gcc-gnats


>Number:         8473
>Category:       java
>Synopsis:       syntax error on anonymous array subscript
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 05 23:16:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Jesse Rosenstock
>Release:        gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
>Organization:
>Environment:

>Description:
This fails, although it is accepted by javac:

; cat AnonymousArrayAccess.java
class AnonymousArrayAccess {
  void f() {
    Object o = new Object[]{}[0];
  }
}

; gcj AnonymousArrayAccess.java
AnonymousArrayAccess.java:3: ';' expected.
       Object o = new Object[]{}[0];
                                ^
1 error
>How-To-Repeat:
See above.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-11-06  7:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-05 23:16 java/8473: syntax error on anonymous array subscript jmr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).