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.

Warning with /real_size:64

dajum
Novice
601 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 III
601 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