https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118790
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Sam James from comment #3) > Created attachment 60418 [details] > gcc-118790.tar.xz > > Here's a reproducer. I won't reduce it though. This is just enough: ``` gfortran -O2 -flto=jobserver -shared -fallow-argument-mismatch -g -fopenmp ec_args_mod.F90.fii ec_parkind.F90.fii mpl_mpif.F90.fii ec_meminfo.F90.fii ``` The order is important for the module creation.