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

Warning with /real_size:64

dajum
Novice
385 Views

If I compile this source with "ifort /real_size:64" I get a warning that doesn't seem right. Is there a problem with my code or the compiler?

module sf_interfaces

interface min_find

subroutine min_find(xin,fatx,xout)

real,INTENT(IN)::xin,fatx

real,INTENT(OUT)::xout

end subroutine

subroutine dmin_find(xin,fatx,xout)

double precision,INTENT(IN)::xin,fatx

double precision,INTENT(OUT)::xout

end subroutine

end interface

end module

0 Kudos
1 Reply
IanH
Honored Contributor II
385 Views
Your code.

With /real-size:64, the specific procedures are not distinguishable. How would the compiler know which one to call?

You could explicitly provide the kinds for the dummy arguments to avoid this, or also specify /double-size:128.
0 Kudos
Reply