https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82065
Xin Wang <dramwang at 163 dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dramwang at 163 dot com --- Comment #4 from Xin Wang <dramwang at 163 dot com> --- Another variation, used in separate subroutines: ---8<--- implicit none call sub1 call sub2 contains subroutine sub1 use iso_fortran_env print *, integer_kinds end subroutine sub1 subroutine sub2 use iso_fortran_env print *, integer_kinds end subroutine sub2 end program --->8--- Output: ---8<--- % gcc foo.f90 -lgfortran /tmp//ccLBqjJe.s: Assembler messages: /tmp//ccLBqjJe.s:158: Error: symbol `__iso_fortran_env_MOD_integer_kinds' is already defined --->8--- Tested in: gcc6 (FreeBSD Ports Collection) 6.4.0 gcc7 (FreeBSD Ports Collection) 7.3.0 gcc8 (FreeBSD Ports Collection) 8.0.1 20180325 (experimental)