[Patch, fortran] PR25091 and PR20952 - non-conforming entries of array-valued function
THOMAS Paul Richard 169137
Paul.Richard.THOMAS@cea.fr
Tue Sep 5 14:11:00 GMT 2006
:ADDPATCH fortran:
This is an absolutely straight forward patch for two uncomplicated PRs:
From 12.5.2.5:
If the characteristics of the result of the function named in the ENTRY statement are the same
as the characteristics of the result of the function named in the FUNCTION statement, their
result variables identify the same variable, although their names need not be the same. Otherwise,
they are storage associated and shall all be scalars without the POINTER attribute and one of the
types: default integer, default real, double precision real, default complex, or default logical.
This patch asserts that the array specifications must be the same for the characteristics to be
the same.
Regtested on AMD64/SUSE10.1 - OK for trunk and 4.1?
Paul
2006-09-05 Paul Thomas <pault@gcc.gnu.org>
PR fortran/25091
PR fortran/25092
* resolve.c (resolve_entries): It is an error if the entries
of an array-valued function do not have the same shape.
2006-09-05 Paul Thomas <pault@gcc.gnu.org>
PR fortran/25091
PR fortran/25092
* gfortran.dg/entry_array_specs_1.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr25091.diff
Type: application/octet-stream
Size: 2856 bytes
Desc: pr25091.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20060905/7d82d068/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: commit.msg
Type: application/octet-stream
Size: 330 bytes
Desc: commit.msg
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20060905/7d82d068/attachment-0001.obj>
More information about the Fortran
mailing list