[Patch, fortran] PR27122 - requirements for defined operators -redux
Paul Thomas
paulthomas2@wanadoo.fr
Thu Apr 20 21:38:00 GMT 2006
Tobi has very kindly, given his present commitments, taken a look at
this patch and has given me plenty of feedback, off-list.
Most significantly, he questioned the principle of a separate test for
defined operators, given the working mechanism for handling intrinsic
operators. I was greatly surprised by this too but it turns out that
this is required, if only because these different kinds of operator hang
onto different fields of gfc_namespace (uop_root and operators[],
respectively). I stand by my statement that defined operators are not
checked in gfortran, at present.
Beyond the basic principle, Tobi alighted upon typos and stylistic
"inexactitudes" that require me to resubmit. To this end, please find
attached the revised patch and testcase. The ChangeLog entries remain
the same.
Regtested on FC5/Athlon.
If I do not hear anything in the next 24 hours, I will submit to trunk.
There will then follow a two week hiatus before I can submit to 4.1.
Thanks, Tobi!
Paul
2006-04-20 Paul Thomas <pault@gcc.gnu.org>
PR fortran/27122
* resolve.c (resolve_function): Remove general restriction on auto
character length function interfaces.
(gfc_resolve_uops): Check restrictions on defined operator
procedures.
(resolve_types): Call the check for defined operators.
2006-04-20 Paul Thomas <pault@gcc.gnu.org>
PR fortran/27122
* gfortran.dg/defined_operators_1.f90: New test.
* gfortran.dg/assumed_charlen_function_1.f90: Add new error and
remove old ones associated, incorrectly with Note 5.46.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: resubmit.diff
Type: text/x-patch
Size: 4251 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20060420/8ed88fe6/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: defined_operators_1.f90
Type: text/x-fortran
Size: 1553 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20060420/8ed88fe6/attachment-0001.bin>
More information about the Fortran
mailing list