https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119460
--- Comment #14 from Paul Thomas <pault at gcc dot gnu.org> --- Created attachment 61006 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61006&action=edit Fix for this PR I believe that this fixes most, if not all, of the problems with the reduce intrinsic. I will be packaging it up for submission over the next 24 hours. I have only been able to test on x86_64. The key to the fix appears in reduce_3.f90, which failed even with -m64. Although it was not apparent from the tree dump, the scalar result was going on the stack. Once it became larger than the word size, it pushed the arguments out of alignment with the library prototype. I took the opportunity to add character length checking to the library. I think that it might be redundant and so might not appear in the submitted version. I would appreciate feedback as soon as you can, please. Paul