View previous topic :: View next topic |
Author |
Message |
yair999
Joined: 31 Mar 2008 Posts: 4
|
Posted: Tue Jun 02, 2009 7:51 am Post subject: unexplained error message with FTN95 5.30 |
|
|
Hello,
I have an unexplained error message compiling the following program.
The error message which follows relates to the line "B(i+1)%C(:) = 0.".
Intel Visual Fortran compiler 11.0.66 does not complain.
I would appreciate any help.
Thank you,
Yair
===================================
TYPE A
REAL, DIMENSION(2) :: C
END TYPE A
TYPE(A), DIMENSION(2) :: B
i = 1
B(i+1)%C(:) = 0.
END
===================================
Compiling file: muku.f90
D:\kuku\muku.F90(8) : error 256 - INTEGER expression expected in array bounds subscript
Compilation failed. |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Tue Jun 02, 2009 8:27 am Post subject: |
|
|
This is a compiler fault resulting from a regression at about version 3.4.
As a work-around you can write
B(i+1)%C = 0.
or
j=i+1
B(j)%C( = 0.
"/ignore 256" does not do the trick.
We will aim to fix the problem for the next release. |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Thu Jun 11, 2009 8:11 am Post subject: |
|
|
This bug has been fixed for the next release. |
|
Back to top |
|
 |
|