Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Is this a compiler bug?

Martin_Beizer
Beginner
975 Views

When the attached code is built with VF 10.1, the correct results, shown below as #1, are output. When VF 11.1 is used, the incorrect output shown in #2 is obtained. Were only experiencing a problem when a function is called from within a subroutine.

Any ideas?

Thanks in advance!

#1. Intel Fortran Compiler Integration for Microsoft Visual Studio 2005, 10.1.4156.2005, Copyright (C) 2002-2008 Intel Corporation

Hello World!

returned value before READ_PARAMETER_FILE nbin - 16
returned value inside READ_PARAMETER_FILE nbin - 16 16
returned value inside READ_PARAMETER_FILE nbin - 16 16
returned value after READ_PARAMETER_FILE nbin - 16

#2. Intel Visual Fortran Compiler Integration for Microsoft Visual Studio* 2005, 11.1.3466.2005, Copyright (C) 2002-2009 Intel Corporation

Hello World!

returned value before READ_PARAMETER_FILE nbin - 16
returned value inside READ_PARAMETER_FILE nbin - 2 2
returned value inside READ_PARAMETER_FILE nbin - 2 2
returned value after READ_PARAMETER_FILE nbin - 16

0 Kudos
1 Solution
Steven_L_Intel1
Employee
975 Views

It's a bug. For some reason, the compiler "forgets" the declaration of IP_GET as REAL in the host scope. A workaround is to disable Diagnostics > Check Routine Interfaces.

I will report this to the developers. The issue ID is DPD200149612.

View solution in original post

0 Kudos
4 Replies
abhimodak
New Contributor I
975 Views

For whatever this is worth:- I can reproduce this on WinXP64 VS2005, IVF11.1.054 in debug mode only. The release mode gives answer same as your #1.

Abhi

0 Kudos
Steven_L_Intel1
Employee
976 Views

It's a bug. For some reason, the compiler "forgets" the declaration of IP_GET as REAL in the host scope. A workaround is to disable Diagnostics > Check Routine Interfaces.

I will report this to the developers. The issue ID is DPD200149612.

0 Kudos
Martin_Beizer
Beginner
975 Views

Thanks! We set Diagnostics -> Check Routine Interfaces to No and the software works fine.

Also, thanks for the very fast response...

Martin

0 Kudos
Steven_L_Intel1
Employee
975 Views
I expect this bug to be fixed in the next major release, scheduled for November.
0 Kudos
Reply