------- Comment #3 from mikael at gcc dot gnu dot org  2010-05-31 18:04 -------
OK, it seems gfortran is wrong here. 

The 4.8 section (Construction of array values) says :
   /If an ac-value is an ac-implied-do, it is expanded
    to form a sequence of elements under the control of the ac-do-variable,
    as in the DO construct (8.1.6.6)./

And in the DO construct the number of iterations shall be evaluated before
execution. 


Confirmed. However, having this in real world codes seems like the best way to
confuse people. 


-- 

mikael at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |wrong-code
      Known to fail|                            |4.4.4 4.6.0
   Last reconfirmed|0000-00-00 00:00:00         |2010-05-31 18:04:29
               date|                            |


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

Reply via email to