https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84088
Paul Thomas <pault at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-01-31 Assignee|unassigned at gcc dot gnu.org |pault at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #10 from Paul Thomas <pault at gcc dot gnu.org> --- I'll take this and deal with it this evening. The problem lies in trans-expr.c(gfc_conv_scalar_to_descriptor), which was touched in the patch as was the code around the call to it from gfc_conv_procedure_call. You will note that not only is elem_len = 8 in comment #9 but the type is 11, which is also wrong. Thanks for the testcase with which I can reproduce the problem. Paul