https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119889
--- Comment #7 from Jürgen Reuter <juergen.reuter at desy dot de> --- (In reply to anlauf from comment #6) > (In reply to Jürgen Reuter from comment #5) > > as I reported this to NAG and Intel as well, I got the following reply from > > Malcolm Cohen from NAG: > > "I note that there is an error in your example at line 56: it has > > procedure(dlsym), pointer :: tmp_fun > > however, it is not being pointer-assigned dlsym, but the result of > > referencing dlsym. Therefore it should be something like > > procedure(), pointer :: tmp_fun" > > > > After correcting this, both Nagfor and Ifx compile, as in gfortran. > > Cheers, > > Jürgen > > Thanks, Jürgen. > > If there is a confirmation by Intel, can you add here a link to the thread > in their forum? The Intel link is here: https://community.intel.com/t5/Intel-Fortran-Compiler/Internal-compiler-error-with-bind-C-functionality/m-p/1684360/emcs_t/S2h8ZW1haWx8a3Vkb3N8TTlSS1NISldCRFhRSkd8MTY4NDM2MHxLVURPU3xoSw#M175546