uninit check failed

uninit check failed

Hi,

I am wondering why uninit check does not detect uninit variable in the following program. Is there a way to detect such situations ?

       PROGRAM UNINIT_FAILED
       IMPLICIT NONE
       INTEGER VAR
         CALL DO_NOTHING(VAR)
         VAR=VAR+0
         print *, "VAR=", VAR
       END
 
       SUBROUTINE DO_NOTHING(MYVAR)
       IMPLICIT NONE
       INTEGER MYVAR
         RETURN
       END

Thank you very much for your help.

Thierry

3 post / 0 nuovi
Ultimo contenuto
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione

The compiler's run-time uninitialized variable checking is quite limited, unfortunately. It checks static, local scalars only and does not do cross-routine checking. Your error would be caught by the Static Analysis feature of Intel Fortran Studio XE, however.

Allegati: 

AllegatoDimensione
Download capture.png131.93 KB
Steve - Intel Developer Support

Thank you very much for your help.
Thierry

Accedere per lasciare un commento.