Silverfrost Forums

Welcome to our forums

Specification/initialisation problem

27 Feb 2012 2:40 #9719

The following statement (from the Intel Fortran Reference manual)

REAL PI/3.14159/, E/2.71828/, QARRAY(10)/5*0.0,5*1.0/

produces the error '*** Not enough variables in DATA statement'
when compiled with FTN95 (v5.0)

However REAL PI, E, QARRAY(10)/50.0,51.0/

and REAL QARRAY(10)/50.0,51.0/, PI/3.14159/, E/2.71828/

both compile (and run) correctly. It seems that the order of the initialised variables determines whether there is an error or not.

27 Feb 2012 4:16 #9724

This construction is not standard conforming but, since FTN95 is happy with the other cases, this can be considered as a bug.

I will log it for investigation.

5 Mar 2012 1:41 #9759

This bug has now been fixed for the next release of FTN95.

Please login to reply.