[Patch, fortran] PR29284 - [4.1/4.2 Regression] ICE for optional subroutine argument

Paul Thomas paulthomas2@wanadoo.fr
Sun Oct 1 13:43:00 GMT 2006


:ADDPATCH fortran:

This is an 'obvious' patch and I will apply it tomorrow morning unless 
anybody objects.

In testing for an actual argument that is an assumed character length 
procedure, I did not test if the expression for the argument is NULL.  
This, of course, happens if an optional argument is not present and an 
ICE ensues for not doing the check.  The testcase is that provided by 
the author.

Regtested on Cygwin_NT/AMD64.

Domo arigato-gozaimasu!

Paul

2006-10-01  Paul Thomas  <pault@gcc.gnu.org>

    PR fortran/29284
    * trans-expr.c (gfc_conv_function_call): Check the expression
    is present when testing for the passing of an assumed
    character length function.

2006-10-01  Paul Thomas  <pault@gcc.gnu.org>

    PR fortran/29284
    * gfortran.dg/optional_assumed_charlen_1.f90: New test.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr29284.diff
Type: text/x-patch
Size: 1678 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20061001/9b2de864/attachment.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Change.Logs
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20061001/9b2de864/attachment.ksh>


More information about the Fortran mailing list