Bug 108686 - Spurious -Wc-binding-type diagnostics when including omp_lib.h
Summary: Spurious -Wc-binding-type diagnostics when including omp_lib.h
Status: UNCONFIRMED
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 13.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: diagnostic
Depends on:
Blocks:
 
Reported: 2023-02-06 19:00 UTC by Rimvydas (RJ)
Modified: 2023-02-07 14:06 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rimvydas (RJ) 2023-02-06 19:00:57 UTC
$ cat test.f90
subroutine foo
include 'omp_lib.h'
end subroutine

$ gfortran -Wall -c test.f90
omp_lib.h:389:47:

Warning: Variable 'depobj_list' at (1) is a dummy argument of the BIND(C) procedure 'omp_target_memcpy_async' but may not be C interoperable [-Wc-binding-type]
omp_lib.h:429:58:

Warning: Variable 'depobj_list' at (1) is a dummy argument of the BIND(C) procedure 'omp_target_memcpy_rect_async' but may not be C interoperable [-Wc-binding-type]