https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122397

--- Comment #1 from anlauf at gcc dot gnu.org ---
Created attachment 62689
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62689&action=edit
More complete testcase

All calls to sub in the testcase are handled in gfc_conv_procedure_call here:

                /* This is where we introduce a temporary to store the
                   result of a non-lvalue array expression.  */
                gfc_conv_array_parameter (&parmse, e, nodesc_arg, fsym,
                                          sym->name, NULL);

Assuming the comment is appropriate, we should not get here.  IIUC the actual
argument is an lvalue expression, but it need not be contiguous.

Reply via email to