https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89174
--- Comment #5 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- The problem is with the subroutine, not with the call from the main program. If you split the module and main program into a separate file and compile the modlue with r264951 (a random version which works) and the mani program with r265171, the program works. The other way around, it segfaults.