------- 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