- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there a Visual Studio Fortran Compiler setting that will warn me if there is an uninitialized variable?
Link Copied
8 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
/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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Look for it in July. As with all our releases, if your support license is current, you are licensed for the new version.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve,
Thanks for the info. We will make sure that we have a current license in July.
Rachel

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page