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

ifx 2025 warning #5472

AndyMay
Beginner
230 Views

I'm getting a warning with ifx 2025 that was not issued by earlier versions of ifx. This is a cut-down:

 

subroutine test
use iso_c_binding, only: c_bool
interface
subroutine cfun(cl) bind(c)
import
logical(c_bool), value :: cl
end subroutine cfun
end interface
call cfun(.true._c_bool)
end subroutine test

 

and with ifx 2025 I get:

 

> ifx -c test.f90
test.f90(9): warning #5472: When passing logicals to C, specify '-fpscomp logicals' to get the zero/non-zero behavior of FALSE/TRUE.
call cfun(.true._c_bool)
----------^

 

Is there really some potential ambiguity in behaviour to worry about here?

0 Kudos
1 Reply
Reply