https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65975
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus at gcc dot gnu.org --- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- It is rejected the same way if you just type external, logical:: foobar end If you write instead external foobar logical:: foobar end it is accepted. I think Fortran95 would use INTERFACE instead (or MODULE), dunno where the external, type:: form would come from. CCing Tobias. !$ external omp_in_parallel !$ logical:: omp_in_parallel !$ external omp_get_thread_num !$ integer:: omp_get_thread_num or !$ include 'omp_lib.h' will work.