https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107819
--- Comment #9 from Mikael Morin <mikael at gcc dot gnu.org> --- (In reply to anlauf from comment #7) > > In the meantime, do you have an idea where to force the generation of a > temporary? I've been scrolling through gfc_conv_procedure_call to see > if that might be the right place, but that's not a small function... It seems the semantics when an argument has the value attribute is the same as the case ELEM_CHECK_VARIABLE in my previous comment. So forcing the value of the elemental argument to ELEM_CHECK_VARIABLE at some appropriate place could possibly work.