------- Comment #3 from burnus at gcc dot gnu dot org  2009-11-24 16:11 -------
The simplified test case is just having the "work" subroutine.

The problem is that the argument "k" is also the loop variable. I am not sure
that this is allowed.

Jakub, do you quickly see whether this is allowed? ifort compiles it ...

 * * *

The complete program is in any case invalid. It has:
   do i=1,2
      call work(i)
and then the dummy argument gets modified in "work"; however, the Fortran
standard does not allow modifying loop variables.


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu dot org
           Keywords|ice-on-valid-code           |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42162

Reply via email to