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

Infinite compile-time loop with invalid code

Harald1
New Contributor II
802 Views

The following invalid code with a cyclic dependency consumes all ressources on my Linux machine.  It may make sense to limit the virtual memory for reproducing with ifort/ifx 21.3:

subroutine s(x)
  implicit character (a-z)
  character(len=len(y)+1) :: x
  character(len=len(x)+1) :: y
end

You have been warned...

 

Thanks,

Harald

0 Kudos
1 Solution
Barbara_P_Intel
Moderator
535 Views

Another issue that you reported is fixed, @Harald1, with this release of ifort 2021.6.0 that is part of oneAPI HPC Toolkit 2022.2.



View solution in original post

0 Kudos
3 Replies
Barbara_P_Intel
Moderator
730 Views

I didn't try compiling on Linux; I didn't want to hang my machine.

I did try it on my Windows laptop since the power button is handy. No hang, no running out of memory! I did get an ICE.

I filed a bug for you, CMPLRIL0-34117. I'll let you know when it's fixed and you can try again.



0 Kudos
Barbara_P_Intel
Moderator
536 Views

Another issue that you reported is fixed, @Harald1, with this release of ifort 2021.6.0 that is part of oneAPI HPC Toolkit 2022.2.



0 Kudos
Harald1
New Contributor II
507 Views

Indeed this is now fixed.

Thanks,

Harald

 

0 Kudos
Reply