[Bug fortran/122397] Wrong dtype passing inquiry ref of complex array to pointer dummy with INTENT(IN)
anlauf at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Nov 2 21:37:18 GMT 2025
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.
More information about the Gcc-bugs
mailing list