https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110644
--- Comment #15 from Kyle Shores <kyle.shores44 at gmail dot com> --- To reiterate how this issue can sometimes be resolved, if I take use statements out of subroutines and place them at the top of a module, files can then be compiled.