http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59906
--- Comment #8 from Paul Thomas <pault at gcc dot gnu.org> --- Created attachment 32010 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32010&action=edit Tentative patch for the PR The line that compiled did not yield correct code. The testcase in the patch runs correctly. The first regtest failed in elemental_scalar_args_2.f90. To fix this, the exclusion of functions in the patched part of trans-expr.c had to be added. This surprises me because it looks to me as if gfc_conv_string_parameter should do the job itself. I will investigate. In the meantime, a second regtest is underway. Cheers Paul