From mboxrd@z Thu Jan 1 00:00:00 1970 From: apbianco@cygnus.com To: gcc-gnats@gcc.gnu.org Cc: fmedio@mandrakesoft.com Subject: java/3417: Downcast on integral types. Date: Mon, 25 Jun 2001 16:46:00 -0000 Message-id: <20010625234217.309.qmail@sourceware.cygnus.com> X-SW-Source: 2001-06/msg01063.html List-Id: >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: