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

Infinite compile-time loop with invalid code

Harald1
Nouveau contributeur II
2 627 Visites

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 Compliments
1 Solution
Barbara_P_Intel
Employé
2 360 Visites

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.



Voir la solution dans l'envoi d'origine

0 Compliments
3 Réponses
Barbara_P_Intel
Employé
2 555 Visites

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 Compliments
Barbara_P_Intel
Employé
2 361 Visites

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 Compliments
Harald1
Nouveau contributeur II
2 332 Visites

Indeed this is now fixed.

Thanks,

Harald

 

0 Compliments
Répondre