Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29271 ディスカッション

Uninitialized FORTRAN Variables in Visual Studio .NET

peledrg
ビギナー
1,233件の閲覧回数
Is there a Visual Studio Fortran Compiler setting that will warn me if there is an uninitialized variable?
0 件の賞賛
8 返答(返信)
sabalan
新規コントリビューター I
1,233件の閲覧回数
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.
peledrg
ビギナー
1,233件の閲覧回数
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?
Steven_L_Intel1
従業員
1,233件の閲覧回数
/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.
peledrg
ビギナー
1,233件の閲覧回数
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.
Intel_C_Intel
従業員
1,233件の閲覧回数
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
peledrg
ビギナー
1,233件の閲覧回数
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
Steven_L_Intel1
従業員
1,233件の閲覧回数
Look for it in July. As with all our releases, if your support license is current, you are licensed for the new version.
peledrg
ビギナー
1,233件の閲覧回数
Steve,
Thanks for the info. We will make sure that we have a current license in July.
Rachel
返信