Silverfrost Forums

Welcome to our forums

unexplained error message with FTN95 5.30

2 Jun 2009 6:51 #4649

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.

2 Jun 2009 7:27 #4650

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.

11 Jun 2009 7:11 #4691

This bug has been fixed for the next release.

Please login to reply.