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

Compile-time Check for Uninitialized Variables

bgeneto
Beginner
528 Views

How can I enable compile-time check for uninitialized variables with ifort 9.1.034? I think there were such an option in the past.

Thanks,

Bernhard.

0 Kudos
2 Replies
Steven_L_Intel1
Employee
528 Views
Intel Fortran has not had such a feature, CVF did.(Intel Fortran does some run-time uninitialied variable checking.) In our next major release, there is planned to be a new product feature where you can request a lot of compile-time checking on a multifile basis, including uninitialized variables.
0 Kudos
jimdempseyatthecove
Honored Contributor III
528 Views

Until the next version comes out you might do a web search for a LINT program that handles F90 files. There has been one for C for decades I am sure there is a free LINT for Fortran files as well.

Jim

0 Kudos
Reply