View previous topic :: View next topic |
Author |
Message |
skeptic
Joined: 22 Mar 2009 Posts: 14
|
Posted: Mon Feb 27, 2012 3:40 pm Post subject: Specification/initialisation problem |
|
|
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)/5*0.0,5*1.0/
and REAL QARRAY(10)/5*0.0,5*1.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. |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8208 Location: Salford, UK
|
Posted: Mon Feb 27, 2012 5:16 pm Post subject: |
|
|
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. |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8208 Location: Salford, UK
|
Posted: Mon Mar 05, 2012 2:41 pm Post subject: |
|
|
This bug has now been fixed for the next release of FTN95. |
|
Back to top |
|
 |
|