[Patch, fortran] PR20863 and PR20082 - things PURE and impure
Paul Thomas
paulthomas2@wanadoo.fr
Sat Jun 16 16:09:00 GMT 2007
:ADDPATCH fortran:
These might be said to be legacy PRs:) Seriously, though, getting the
constraints right for PURE procedures is important and it is a shame
that these have lain around for so long.
The patch remedies two omissions in applying the constraints associated
with variables in PURE procedures. The testcase lifts the reporters'
originals and exercises the fix a bit more. The patch and the Changelog
pretty much speak for themselves.
Bootstrapped and regtested on x86_ia64/FC5 - OK for trunk and 4.2?
Paul
2007-06-16 Paul Thomas <pault@gcc.gnu.org>
PR fortran/20863
PR fortran/20082
* resolve.c (resolve_code): Use gfc_impure_variable as a
condition for rejecting derived types with pointers, in pure
procedures.
(gfc_impure_variable): Add test for dummy arguments of pure
procedures; any for functions and INTENT_IN for subroutines.
2007-06-16 Paul Thomas <pault@gcc.gnu.org>
PR fortran/20863
PR fortran/20082
* gfortran.dg/impure_assignment_2.f90 : New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: submit0616.diff
Type: text/x-patch
Size: 5491 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070616/00a6a0aa/attachment.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Change.Logs
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070616/00a6a0aa/attachment.ksh>
More information about the Fortran
mailing list