https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82065
Harald Anlauf <anlauf at gmx dot de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |anlauf at gmx dot de --- Comment #3 from Harald Anlauf <anlauf at gmx dot de> --- Slight variation of the original testcase that compiles but gives a wrong result: use iso_fortran_env implicit none print *, integer_kinds call testsub call testsub2 contains subroutine testsub print *, integer_kinds end subroutine subroutine testsub2 use iso_fortran_env, only : x => integer_kinds print *, x end subroutine end % ./a.out 1 2 4 8 1 2 4 8 0 0 0 0