https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79313
--- Comment #5 from Michael Levy <mlevy at ucar dot edu> --- (In reply to Steve Kargl from comment #3) > On Wed, Feb 01, 2017 at 04:37:52AM +0000, kargl at gcc dot gnu.org wrote: > A 3rd alternative is change your declaration in the subroutine to > > integer, external :: omp_get_thread_num, omp_get_num_threads I have verified that this works, thank you! (I'm a little confused about how the associate statement highlighted the need for this attribute in the declaration but that's okay.)