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

Uninitialized FORTRAN Variables in Visual Studio .NET

peledrg
Beginner
1,210 Views
Is there a Visual Studio Fortran Compiler setting that will warn me if there is an uninitialized variable?
0 Kudos
8 Replies
sabalan
New Contributor I
1,210 Views
In CVF go to Project / Settings... / Fortran, then in "Category" select Compilation Diagnostics, and then in the window below Warning Level check for Uninitialized Variables.
But I think this is checked by default.
Sabalan.
0 Kudos
peledrg
Beginner
1,210 Views
I am using Intel Fortran Compiler Integration for Microsoft Visual Studio .NET 2003, Version 8.0.1877.2003. I could not find any option in the Diagnostic area to give me warnings for "uninitialized variables", similar to the "C/C++" compiler.
I would settle for a /Qzero option which is not available in this version of the compiler.
Is there a patch for this option or do I need to purchase tne new Intel Visual Fortran Compiler 8.1 for Windows which has this option?
0 Kudos
Steven_L_Intel1
Employee
1,210 Views
/Qzero is available in the current Intel Fortran Compiler 8.1, but it has some limitations. Uninitialized variable checking is planned for a future release.
0 Kudos
peledrg
Beginner
1,210 Views
Steve,
Uninitialized variable checking is very important. But with large legacy code Qzero and Qsave are agood trade off. I tried Version 8.1 and it works great for me.
Thanks,
Rachel.
0 Kudos
Intel_C_Intel
Employee
1,210 Views
Hello.
The checking of unitialized variables is indeed very important to remove bugs from programs. I can confirm that this works very well in a furure release of Intel Fortran. With this functionality, as well assome other new run time cheks, the future Intel Fortran will be equivalent with (or maybe better than!) similar run timechecking seen in the best C++ compilers available.
:-)
Best regards,
Lars Petter Endresen
0 Kudos
peledrg
Beginner
1,210 Views
Lars,
Thanks for the great news. I look forward to the new Fortran compiler with the Uninitializes Variable checking. When is this scheduled to be released?
Regards,
Rachel
0 Kudos
Steven_L_Intel1
Employee
1,210 Views
Look for it in July. As with all our releases, if your support license is current, you are licensed for the new version.
0 Kudos
peledrg
Beginner
1,210 Views
Steve,
Thanks for the info. We will make sure that we have a current license in July.
Rachel
0 Kudos
Reply