Open naromero77 opened 4 years ago
Fortran doesn't have an intrinsic function named sizeof
.
That call looks suspiciously like a macro invocation.
Intel and Gnu have a sizeof intrinsic.
https://software.intel.com/en-us/fortran-compiler-developer-guide-and-reference-sizeof
https://gcc.gnu.org/onlinedocs/gfortran/SIZEOF.html
Has this been standardized as C_SIZEOF?
Yep, those where the pages that I found. It seemed very much a C thing that got transplanted into Fortran.
This code is usually compiled with GNU or Intel.
Best that I can tell, there does not seem to be a macro defined in the code.
This compile-time error comes from a DOE science code. I suspect the problem is triggered by the intrinsic
sizeof
function operating on a pointer to a derived type.Here is the ling that it chokes on:
and here is the declaration for the arguement:
I am packaging up tiling.F90 along with the relevant modules. sizeof_type_pointer.tar.gz