- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I've recently found something that looks like a compiler bug to me. I'm using ifort 12.0.3.174 and the bug is there when -O3 option is used. This is the simplest version of the program that has it, I hope it is self-explanatory: the value of 'index' variable at the end should be 1, but it is 0 instead with -O3 option. Everything works correct if the module aux_mod is defined in the same file as the main program or if I do not call the subroutine.
main.f90
aux_mod.f90
I've recently found something that looks like a compiler bug to me. I'm using ifort 12.0.3.174 and the bug is there when -O3 option is used. This is the simplest version of the program that has it, I hope it is self-explanatory: the value of 'index' variable at the end should be 1, but it is 0 instead with -O3 option. Everything works correct if the module aux_mod is defined in the same file as the main program or if I do not call the subroutine.
main.f90
aux_mod.f90
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I will investigate, find what version this first showed itself, and get a bug report going.
ron
ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
bug ID is DPD200170206
affects all versions of 12.x. Does not affect older 11.1 compiler versions.
ron
affects all versions of 12.x. Does not affect older 11.1 compiler versions.
ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This bug was fixed in recent 12.1 compilers released after December 2011.
closing.
ron
closing.
ron

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