https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99602
--- Comment #7 from Jürgen Reuter <juergen.reuter at desy dot de> --- (In reply to Jürgen Reuter from comment #3) > Here is a shorter reproducer, and this time it is the -fcheck=pointer that > leads to the problem. I was able to reproduce this to 80 lines, leading to > the error: > At line 41 of file repro.f90 > Fortran runtime error: Pointer actual argument 'm2' is not associated > > module m m2 > end program main Please consider the follow-up comment with the corrected example, Comment #6.