This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
[Patch, fortran] PR35932 - [4.3/4.4 Regression] ICE: CHAR with array arg and also a KIND arg
- From: "Paul Richard Thomas" <paul dot richard dot thomas at gmail dot com>
- To: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Wed, 16 Apr 2008 23:20:17 +0200
- Subject: [Patch, fortran] PR35932 - [4.3/4.4 Regression] ICE: CHAR with array arg and also a KIND arg
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=4vjQ8adXyGK3vqexCU2hb91MEM/7rmCJ1c9g2LDN070=; b=cgoe8xae9LxnlTH16Cw3YlkCNoUQufR4MRrv6Vlhl1G6+DTslLPA8HfFDeKnyBR0tZrWSisaKxVyUyRYhBAlQLhlEfbmhh6ftb1N85nTZFnjuFGDLL/Xv2MllR7Rvt4uSdsLVGMFlBUdPsTIYC8jIdrvN8DTFgk2XhhBGMMvuRg=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=GQdXpBVEtfgsIy/P3fgZ79jb4pOqvAXNbKjqkZ5VIOdH9b908ZeVG2R9wVTLS/M8gI2te6DuY3ABp6kOQCKAGLbkNO9DTKV/5vJ0jVb0ewGkNJ4eHDDOm9jGIwBiMCR/omrJF5MoiKBdXOmwvI9PWCjTepgVWHTim7mOTOS/lBM=
Fixed on 4.4/4.3 as 'obvious' after bootstrapping and regtesting on
x86_ia64/FC8.
The ICE is a giveaway. The conversion of the rhs must be incomplete
for this to occur. Looking at trans-intrinsic.c
(gfc_conv_intrinsic_char) it was immediately obvious that the KIND
argument was not being converted. This dates back to the patch that
brought in gfc_conv_intrinsic_function_args - hence the regression.
I have not had time to go through all the intrinsics with KIND or very
infrequently used arguments. However, I'll bet that there are more
like this.
Paul
2008-04-16 Paul Thomas <pault@gcc.gnu.org>
PR fortran/35932
* trans-intrinsic.c (gfc_conv_intrinsic_char): Even though KIND
is not used, the argument must be converted.
2008-04-16 Paul Thomas <pault@gcc.gnu.org>
PR fortran/35932
* gfortran.dg/intrinsic_char_1.f90: New test.
--
The knack of flying is learning how to throw yourself at the ground and miss.
--Hitchhikers Guide to the Galaxy