Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

ifort compiler bug

Sagan__David
Beginner
679 Views
There is a bug in the ifort compiler. Test files can be found at:
http://www.lepp.cornell.edu/~dcs/temp/test2/

The file "doit" runs the ifort compiler. The result is:

lnx209:~/dcs/temp_lib/test2> ifort --version
ifort (IFORT) 11.1 20100806
Copyright (C) 1985-2010 Intel Corporation. All rights reserved.

lnx209:~/dcs/temp_lib/test2> ./doit
test.f90(13): error #6460: This is not a field name that is defined in the encompassing structure. [EXP]
ttaylor(1)%term(1)%exp = 0

This error message is bogus. Note that ifort version 9 does not show this bug.

Note: Platform info is:
Linux lnx209.lns.cornell.edu 2.6.9-89.0.20.ELsmp #1 SMP Tue Feb 2 20:15:12 CST 2010 i686 i686 i386 GNU/Linux

0 Kudos
3 Replies
mecej4
Honored Contributor III
679 Views
At least one of your files (a_scratch_size.f90) has a few lines with termination, with most of the file using just termination. This can confuse compilers, especially in Unix/Linux/OSX, where s are not used.

You have a module procedure with interface name 'exp'. You also have a derived type with component name 'exp'. This is OK as far as language rules go, but it is confusing the IFort compiler. A simple work-around is to change one of them. Changing the component to 'exq', for example, allows the compiler to finish and produce an executable.

As you certainly know, the program is not ready to run yet at this testing stage: it crashed at the very first executable statement in test.f90 because pointers are used before being allocated.
0 Kudos
Sagan__David
Beginner
679 Views
I ran the files through dos2unix and this did not do anything. I suspect the compiler bug is not due to line endings. In any case, thanks for the diagnosis. And indeed, the program was never meant to run. Just to show the compiler bug.
0 Kudos
Kevin_D_Intel
Employee
679 Views
Thank you for the submission, dcs16. I will obtain the files, test some newer internal compilers and post an update when I know more.

Thank you for the quick analysis and work around, mecej4.
0 Kudos
Reply