https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64958
--- Comment #7 from MarkEggleston <mark.eggleston at codethink dot com> --- (In reply to Dominique d'Humieres from comment #6) > > Warning is output by gfortran 6.3.0. > > ... > > Not a warning, but an error as it shall. This PR is different: it is about > the case where the INTENT(IN) is obfuscated by a subroutine. Where no intent is specified in subroutine dusty(n) (see comment 1), producing a warning is straight forward. However, that would only apply to a small part of the problem. Checking with intent specified in dusty shows that the program will compile with intent(inout) and intent(out). It also allows the dummy variable with intent(out) to be used as though it were intent(inout). Checks on procedure calls in a procedure with its dummy variables would need to made to determine the risk of a dummy variable with intent(in) being modified.