Skip to content

Commit 11d7a2e

Browse files
committed
links
1 parent 58a9248 commit 11d7a2e

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,21 @@ The examples "array", "malloc", "vector" show distinct ways to send arrays to/fr
7878

7979
### bool
8080

81-
Made workaround for [nvfortran](https://forums.developer.nvidia.com/t/nvfortran-c-bool-bind-c-not-improper-value/291896).
81+
Made workaround for
82+
[nvfortran](https://forums.developer.nvidia.com/t/nvfortran-c-bool-bind-c-not-improper-value/291896)
83+
not yet supporting F2018 standard.
84+
In general, one needs to check that `logical(C_BOOL)` works as expected on the compiler because pre-Fortran 2018, the C_BOOL type was compiler-dependent.
85+
86+
Thanks, I see this in these discussions too.
87+
88+
* [ifort might return an incorrect C_BOOL .true. in iso_c_binding - Intel Community](https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-might-return-an-incorrect-C-BOOL-true-in-iso-c-binding/m-p/999050)
89+
* [Internal representation of LOGICAL variables (The GNU Fortran Compiler](https://gcc.gnu.org/onlinedocs/gfortran/Internal-representation-of-LOGICAL-variables.html#Internal-representation-of-LOGICAL-variables)
90+
* [Solved: Re: Error #8809: An OPTIONAL or EXTERNAL dummy argument to a BIND(C) procedure is not interoperable - Intel Community](https://community.intel.com/t5/Intel-Fortran-Compiler/Error-8809-An-OPTIONAL-or-EXTERNAL-dummy-argument-to-a-BIND-C/m-p/1250873#M154133)
91+
* [Branchless conditional arithmetic oddities - #18 by sblionel - Language enhancement - Fortran Discourse](https://fortran-lang.discourse.group/t/branchless-conditional-arithmetic-oddities/5451/18)
92+
* [oneAPI -standard-semantics](https://www.intel.com/content/www/us/en/docs/fortran-compiler/developer-guide-reference/2024-1/standard-semantics.html)
93+
* https://www.fortran90.org/src/gotchas.html#c-fortran-interoperability-of-logical
94+
* https://info.ornl.gov/sites/publications/Files/Pub158443.pdf Section 3.1.2
95+
* https://shroud.readthedocs.io/_/downloads/en/latest/pdf/ section 11.4
8296

8397
### Error handling
8498

0 commit comments

Comments
 (0)