Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Comunicados
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
Principiante
968 Visualizações

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 Solução
Steven_L_Intel1
Funcionário
968 Visualizações

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.

Ver solução na publicação original

4 Respostas
abhimodak
Novo colaborador I
968 Visualizações

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

Steven_L_Intel1
Funcionário
969 Visualizações

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.

Martin_Beizer
Principiante
968 Visualizações

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

Also, thanks for the very fast response...

Martin

Steven_L_Intel1
Funcionário
968 Visualizações
I expect this bug to be fixed in the next major release, scheduled for November.
Responder