https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108056
--- Comment #3 from Gilles Gouaillardet <gilles.gouaillardet at gmail dot com> --- For the sake of completeness, debian/ubuntu ships libgfortran.a (read, the static library) from gfortran-11, so I can get this reproducer work if compiling with -static-libgfortran. I also manually rebuilt gfortran-11 on debian (I did my best to reuse debian patches) and it worked. It took me some time to figure out it worked because I then implicitly used libgfortran-11.