You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using an oldish (4.8.5) version of gfortran, I found the following error:
gfortran -c -o flook.o -Iaotus/obj ./src/flook.F90
./src/flook.F90:1681.16:
ptr = c_loc(val)
1
Error: Assumed-shape array 'val' at (1) cannot be an argument to the procedure 'c_loc' because it is not C interoperable
Support for interoperability of assumed-shape arrays is not part of Fortran 2003. It is codified in a supplement, and is part of Fortran 2018:
The Technical Specification ISO/IEC TS 29113:2012 on further interoperability of Fortran with C extends the interoperability support of Fortran 2003 and Fortran 2008. Besides removing some restrictions and constraints, it adds assumed-type (TYPE(*)) and assumed-rank (dimension) variables and allows for interoperability of assumed-shape, assumed-rank and deferred-shape arrays, including allocatables and pointers.
On the other hand, ifort 17 and not-very-new versions of gfortran work well.
The text was updated successfully, but these errors were encountered:
Using an oldish (4.8.5) version of gfortran, I found the following error:
Support for interoperability of assumed-shape arrays is not part of Fortran 2003. It is codified in a supplement, and is part of Fortran 2018:
On the other hand, ifort 17 and not-very-new versions of gfortran work well.
The text was updated successfully, but these errors were encountered: