Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29361 Discussions

Bug in interface generation: upper bounds are dropped

Cross__Mat
Beginner
601 Views
I'm using

> ifort --version
ifort (IFORT) 12.1.0 20111011
Copyright (C) 1985-2011 Intel Corporation. All rights reserved.

on

> uname -a
Linux stonehenge 3.1.1-2.fc16.x86_64 #1 SMP Mon Nov 14 15:46:10 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

With input source

> cat ub.f90
subroutine sub(x,n)
integer :: n, x(n,1:2)
end

I see the final upper bound 2 is dropped

> ifort -c -gen-interfaces ub.f90 ; ifort -c sub__genmod.f90
sub__genmod.f90(6): error #6644: The dimension specifications are incompatible.
INTEGER(KIND=4) :: X(N,1:)
---------------------------------^
compilation aborted for sub__genmod.f90 (code 1)
0 Kudos
2 Replies
Steven_L_Intel1
Employee
601 Views
How amusing - thanks. I have escalated this as issue DPD200176329. The generated .mod appears to work correctly, so this is just a "cosmetic" issue in the .f90, which is not used by the compiler. Still, we recognize that some people do use this generated source so we should fix the bug.
0 Kudos
Steven_L_Intel1
Employee
601 Views
This has been fixed for a release later this year.
0 Kudos
Reply