I have complex data structure (see attached project).
When I run my test code I obtain following results:
size of structure 2224 bytes
position of last element 2208 bytes
size of last element 4 bytes
assumed size 2212 bytes
So there is discrepancy between size of structure 2224 (given by sizeof) and assumed size of structure 2212 calculated from position of last element and its size.
Because 2212 cannot be divided by 8 I expect size of structure to be 2216 bytes. When I use the same structure rewriten to C++ I obtain size of structure 2216 bytes.
So my question is where are another 8 bytes which FORTRAN allocates for structure.
I am using 11.1.67 fortran on Windows.
Thank for any advice.