[Patch, fortran] PR25087 - Error for missing explicit interface needed.

Paul Thomas paulthomas2@wanadoo.fr
Wed Nov 15 18:22:00 GMT 2006


Sorry about that - please find the patch attached.

Paul
> :ADDPATCH fortran:
>
> This represents my first contribution in a private campaign to 
> eliminate the interface meta-bug PR29670.
>
> The patch is completely straightforward and adds a missing error in 
> the resolution of procedures.  As well as testsing the original PR, 
> the testcase ensures that legal calls to automatic character length 
> functions still work.
>
> The only remark that I would make concerns the adequacy of using the 
> presence of an automatic arglist for detecting a formal interface.  
> One recent fix had to be done because procedures without dummies have 
> formal == NULL.  However, since this involves an external automatic 
> character length, there must be at least one dummy :-)
>
> Regtested on Cygwin_NT/amd64 - OK for trunk, 4.2 and 4.1?
>
> Paul
>
> 2006-11-15  Paul Thomas <pault@gcc.gnu.org>
>
>    PR fortran/25087
>    * resolve.c (resolve_fl_procedure): Add an error if an external 
> automatic
>    character length function does not have an explicit interface.
>
> 2006-11-15  Paul Thomas  <pault@gcc.gnu.org>
>
>    PR fortran/25087
>    * gfortran.dg/auto_char_len_4.f90: New test.
>

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr25087.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20061115/eed8ca68/attachment.ksh>


More information about the Fortran mailing list