https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82065
--- Comment #5 from Harald Anlauf <anlauf at gmx dot de> --- This looks pretty much like a namespace problem. Adding in the example in comment #4 common /x/ integer_kinds e.g. to subroutine sub1 makes the code illegal but compile. It then prints: 1 2 4 8 0 0 0 0 I have looked at use_iso_fortran_env_module in module.c, but frankly I do not understand how the code is supposed to work.