public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* java/1404: gcj accumulates [] for non-scalar types
@ 2000-12-20 12:28 osk
0 siblings, 0 replies; only message in thread
From: osk @ 2000-12-20 12:28 UTC (permalink / raw)
To: java-gnats
>Number: 1404
>Category: java
>Synopsis: gcj accumulates [] for non-scalar types
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apbianco
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 20 12:19:39 PST 2000
>Closed-Date:
>Last-Modified: Fri Nov 24 13:00:01 PST 2000
>Originator: Oskar Liljeblad
>Release: unknown-1.0
>Organization:
>Environment:
gcj (2.97 20001106)
>Description:
Consider this piece of code:
$ cat Demo.java
public class Demo {
Object a, b[], c[];
public void foo() {
c = new Object[10];
}
}
$ gcj -C Demo.java
Demo.java: In class `Demo':
Demo.java: In method `foo()':
Demo.java:5: Incompatible type for `='. Explicit cast needed to convert `java.lang.Object[]' to `java.lang.Object[][]'.
c = new Object[10];
^
1 error
$
With
Object a, b[];
Object c[];
there are no compilation errors.
Oskar Liljeblad (osk@hem.passagen.se)
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
Formerly PR gcj/374
From: tromey@sourceware.cygnus.com
To: java-gnats@sources.redhat.com
Cc:
Subject: gcj/374
Date: 24 Nov 2000 20:54:10 -0000
CVSROOT: /cvs/java
Module name: libgcj
Changes by: tromey@sources.redhat.com 2000-11-24 12:54:10
Added files:
libjava/testsuite/libjava.compile: PR374.java
Log message:
* libjava.compile/PR374.java: New file. For PR gcj/374.
Patches:
http://gcc.gnu.org/cgi-bin/gcc/libjava/testsuite/libjava.compile/PR374.java.diff?cvsroot=java&r1=NONE&r2=1.1
From: tromey@sourceware.cygnus.com
To: java-gnats@sources.redhat.com
Cc:
Subject: gcj/374
Date: 24 Nov 2000 20:54:44 -0000
CVSROOT: /cvs/java
Module name: libgcj
Changes by: tromey@sources.redhat.com 2000-11-24 12:54:44
Modified files:
libjava/testsuite: ChangeLog
Log message:
* libjava.compile/PR374.java: New file. For PR gcj/374.
Patches:
http://gcc.gnu.org/cgi-bin/gcc/libjava/testsuite/ChangeLog.diff?cvsroot=java&r1=1.110&r2=1.111
>Unformatted:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-12-20 12:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-20 12:28 java/1404: gcj accumulates [] for non-scalar types osk
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).