[patch, fortran] PR31306 ICE with implicit character variables
Jerry DeLisle
jvdelisle@verizon.net
Sat Oct 20 05:43:00 GMT 2007
:ADDPATCH fortran:
Hi all,
The attached patch fixes this ICE by checking for a conflicting attribute in the
function argument to LEN(). There may be additional checks that could be added
here, but for now this resolves the segmentation fault.
Regression tested on x86-64-Gnu-linux.
New test case provided.
OK for trunk?
Regards,
Jerry
2007-10-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/31306
* decl.c (char_len_param_value): Add check for conflicting attributes of
function argument.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: argument_checking_7.f90
Type: text/x-fortran
Size: 662 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20071020/3c8e6a0e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr31306.diff
Type: text/x-patch
Size: 1410 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20071020/3c8e6a0e/attachment-0001.bin>
More information about the Fortran
mailing list