------- Comment #12 from tobi at gcc dot gnu dot org  2009-08-13 13:39 -------
(In reply to comment #11)
>   DO i = 1,10
>     call bar(i)
>   END DO
> 
> if bar may not modify i then the frontend can simply communicate that to the
> middle-end by doing
> 
>   DO i = 1,10
>     j = i;
>     call bar (j)
>   END DO

That's exactly what Thomas is achieving by adding parentheses.  Thomas, If you
want to tackle something more difficult, I'm willing to do this over the
weekend in order to warm up my knowledge of gfortran's internals.


-- 

tobi at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |tobi at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2008-02-19 16:08:27         |2009-08-13 13:39:23
               date|                            |


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

  • ... tkoenig at gcc dot gnu dot org
    • ... Tobias Schlüter <tobias dot schlueter at physik dot uni-muenchen dot de>
    • ... tkoenig at gcc dot gnu dot org
    • ... tobi at gcc dot gnu dot org
    • ... jv244 at cam dot ac dot uk
    • ... rguenth at gcc dot gnu dot org
    • ... tobi at gcc dot gnu dot org
    • ... tkoenig at gcc dot gnu dot org
    • ... Tobias Schlüter <tobias dot schlueter at physik dot uni-muenchen dot de>
    • ... tobi at gcc dot gnu dot org
    • ... tobi at gcc dot gnu dot org
    • ... tobi at gcc dot gnu dot org
    • ... jvdelisle at gcc dot gnu dot org
    • ... mikael at gcc dot gnu dot org
    • ... tobi at gcc dot gnu dot org
    • ... tobi at gcc dot gnu dot org
    • ... tobi at gcc dot gnu dot org

Reply via email to