https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111477
--- Comment #2 from Damian Rouson <damian at archaeologic dot codes> --- Scratch that. I think the code in the original submission _might_ be invalid because it uses an internal subprogram rather than module procedure. So I'll submit a new bug report because I think this one is likely to get marked invalid at some point.