-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sizeof pointer to derive type #1020
Comments
Fortran doesn't have an intrinsic function named 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
The text was updated successfully, but these errors were encountered: