This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
java/4141: GCJ compiles illegal code without complaining.
- To: gcc-gnats at gcc dot gnu dot org
- Subject: java/4141: GCJ compiles illegal code without complaining.
- From: bachir dot ghoubali at avisto dot com
- Date: 27 Aug 2001 17:07:35 -0000
- Reply-To: bachir dot ghoubali at avisto dot com
>Number: 4141
>Category: java
>Synopsis: GCJ compiles illegal code without complaining.
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: accepts-illegal
>Submitter-Id: net
>Arrival-Date: Mon Aug 27 10:16:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Bachir GHOUBALI
>Release: 3.0.1
>Organization:
>Environment:
Solaris 7, gcj 3.0.1
>Description:
gcj compiles illegal code. Following class should not
compile because 'c' is a literal ( not an object ).
public class Str {
public static void main(String[] args) {
'c'.equals( 'c' );
// This is illegal.
}
}
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: