Does IF 7 support variable expression in Format Statement?

Does IF 7 support variable expression in Format Statement?

Hello,

Intel Fortran 7 seems to be able to compile the variable expression format statement without any error, but the program fails at runtime.

m = 5
print '(f10.4)' x1,x2,x3,x4,x5

Regards,
Long

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Well, yes, Intel Fortran 7 does support variable format expressions in FORMAT statements, but you didn't write a FORMAT statement!

IF7 does not support VFEs in character literal formats, which is what you used. Use a separate FORMAT statement and it will work ok.

This works in CVF and should work in the future Intel Visual Fortran product.

Steve

Steve - Intel Developer Support

Thanks for clarification!

Regards,
Long

Leave a Comment

Please sign in to add a comment. Not a member? Join today