24 | use :: gn
Error: Argument mismatch for the overriding procedure 'st' at (1): Type
mismatch in argument 'gsf' (TYPE(c_ptr)/INTEGER(8))
The error only occurs if the module in file1.F90 is compiled separately - if I
combine file1.F90 and file2.F90 into a single file, that single file compiles
I haven't been able to reduce the testcase further, and figuring out the cause
of the error has so far been beyond my ability. What I have found though is
that in the nrn.mod module file created by compiling file.F90 all instances of
symbol "gsf" are correctly given DERIVED type. But, in gn.mod created by
compiling file2.F90 there are two instances of symbol "gsf", the first has
DERIVED type, while the second has INTEGER type. So, it seems that the problem
occurs at (or before) the creation of the gn.mod module file.
Also, the use of the "sizeof()" intrinsic is necessary to trigger the bug.