This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
java/3417: Downcast on integral types.
- To: gcc-gnats at gcc dot gnu dot org
- Subject: java/3417: Downcast on integral types.
- From: apbianco at cygnus dot com
- Date: 25 Jun 2001 23:42:17 -0000
- Cc: fmedio at mandrakesoft dot com
- Reply-To: apbianco at cygnus dot com
>Number: 3417
>Category: java
>Synopsis: Downcast on integral types.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: accepts-illegal
>Submitter-Id: net
>Arrival-Date: Mon Jun 25 16:46:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Alex
>Release: all.
>Organization:
>Environment:
all.
>Description:
java/decl.c:build_result_decl widen integral return type
to int_type_node, for better cooperation with C++. It
prevents jc1 from catching the error in this code:
class Foobar { char func (int i) { return i; } }
>How-To-Repeat:
Compile class Foobar.
>Fix:
Not yet.
>Release-Note:
>Audit-Trail:
>Unformatted: