- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page