[patch, fortran] Compile-time check for change in DO variable in contained procedures

Thomas Koenig tkoenig@netcologne.de
Wed Aug 5 18:58:10 GMT 2020


Hi Paul,

> I must say that I was thinking rather more of the INTENT(IN) case to make
> sure that it is accepted.

Ah, I misunderstood that.  You're right - also check legal code :-)

I've committed the attached test case as obvious (after verifying that
it passes. It checks against functions and subrotuines with
INTENT(IN) and unspecified intent.

Best regards

	Thomas

Added test case to make sure that legal cases still pass.

gcc/testsuite/ChangeLog:

	PR fortran/96469
	* gfortran.dg/do_check_14.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: do_check_14.f90
Type: text/x-fortran
Size: 1148 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200805/07ff5268/attachment-0001.bin>


More information about the Gcc-patches mailing list