https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120049
--- Comment #3 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- I should mention That this issue was first identified by Vincent Magnin. Vincent has also confirmed the issue on gfortran 11.5 on Ubuntu. There is also a variation where it compiles and segfaults at run time. I am traveling the next few days so not sure I will get back to further reducing for a bit.