[patch, fortran] Compile-time check for change in DO variable in contained procedures
Wed Aug 5 18:58:10 GMT 2020
> 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.
Added test case to make sure that legal cases still pass.
* gfortran.dg/do_check_14.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1148 bytes
Desc: not available
More information about the Gcc-patches