Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Bug with derived types and ifort 16.0

trobitaille
Beginner
256 Views

I am running into an issue with compiling code with ifort 16 which worked with previous versions of ifort and works with e.g. gfortran. The code in question is here:

https://gist.github.com/astrofrog/47ee268a8e71dc6760ec3e0e1b4beca7

and I have put a tar file for convenience here:

https://dl.dropboxusercontent.com/u/3770121/ifort_issue.tgz

I have tried to boil it down to as simple a code as possible. When compiling using make.sh, I get the following error:

grid_geometry_cartesian_3d.f90(11): error #6457: This derived type name has not been declared.   [GRID_CELL]

  type(grid_cell) :: cell

-------^

compilation aborted for grid_geometry_cartesian_3d.f90 (code 1)


However, if I rename one of the 'equal' functions, everything works as expected. Is this a bug in ifort?
 
Thanks!
Tom
0 Kudos
3 Replies
Steven_L_Intel1
Employee
256 Views

Thanks for making the effort to create a minimal test case - we really appreciate it. I have escalated this as issue DPD200414703 and will let you know of any progress.

0 Kudos
Steven_L_Intel1
Employee
256 Views

This problem has been fixed - I expect the fix to appear in Update 2 to Parallel Studio XE 2017.

0 Kudos
trobitaille
Beginner
256 Views

Thanks!

0 Kudos
Reply