Let integer dimension(6) :: f
Consider this statement: f = f + 1
I just now realized that my compiler will accept this statement. I’ve been using fortran for years, and it never occurred to me that this statement would be valid. In my particular situation, I had an error in my code that I didn’t see for a month. If my compiler would have rejected the statement, I would have found the error much earlier. I wonder if there is a compiler option that would reject the above statement?