https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102943
--- Comment #19 from hubicka at kam dot mff.cuni.cz --- > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102943 > > Aldy Hernandez <aldyh at gcc dot gnu.org> changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > Depends on| |103058 > > --- Comment #18 from Aldy Hernandez <aldyh at gcc dot gnu.org> --- > 251.wrf_r is no longer building. Seems to be the same issue in PR103058. > > during GIMPLE pass: alias > module_fr_fire_phys.fppized.f90: In function 'init_fuel_cats': > module_fr_fire_phys.fppized.f90:136:25: internal compiler error: in > gimple_call_static_chain_flags, at gimple.c:1669 > 136 | subroutine init_fuel_cats > | ^ > 0x6957b5 gimple_call_static_chain_flags(gcall const*) > /home/aldyh/src/clean/gcc/gimple.c:1669 I have commited workaround for this. However here it looks like a frontend issue - I do not think Fortran should produce nested functions with external linkage. At least there seems to be no good reason for doing so since they can not be called cross-module. Honza