https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115491
--- Comment #2 from Dom Heinzeller <heinzell at ucar dot edu> --- (In reply to kargls from comment #1) > (In reply to Dom Heinzeller from comment #0) > > I am working on a fairly complicated modeling code used by the U.S. Naval > > Research Lab and I am hitting internal compiler errors that prevent us from > > using gcc. I tested versions 10 through 14 (14.1.0), all with the same > > results. It's going to be complicated to resolve, since I cannot share the > > code, but hopefully we can find a way to address the problem. > > It seems you'll need to do some old fashion debugging for us. > Compile your code. With the problematic file that causes the ICE, > you'll need to start commenting out chunks. Hopefully, you > can isolate a small example, which can then be posted here. Thanks! That is what I started early today, and I do indeed have an update. I can get the code to compile if I change the location of Fortran "use" statements. Basically, it looks like this in the failing code: module abc ... end module abc submodule (abc) def contains module procedure xyz use some_overloaded_procedure ! an interface for several type-bound procedures ... end module procedure xyz end submodule def This code, however, works: module abc ... end module abc submodule (abc) def use some_overloaded_procedure ! an interface for several type-bound procedures contains module procedure xyz ... end module procedure xyz end submodule def