These are chat archives for Fortran-FOSS-Programmers/General-Discussion
C_LOCbut I like this approach (at least it works on both ifort and gfortran).
C_LOCon a polymorphic variable is an error with NAG, and I too am not sure what is "legal". I got mixed signals from FortranFan and Steve Lionel (your Intel forum link).
c_locturn to be useful? Cheer
c_locof a box wrapper around the polymorphic type pointer as the "context data". The function, whose pointer I passed as the call-back, turned this pointer back to a box around the polymorphic type pointer, and then invoked the type bound procedure that was the actual call-back.