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

--- Comment #12 from Mikael Morin <mikael at gcc dot gnu.org> ---
(In reply to anlauf from comment #11)
> Update: Steve Lionel thinks that no temporary is necessary, and testcase
> z1.f90
> is non-conforming:
> 
> https://community.intel.com/t5/Intel-Fortran-Compiler/ELEMENTAL-subroutine-
> and-dummy-with-VALUE-attribute/m-p/1432932
> 
> In this case the patch of comment#2 would be sufficient.

I was about to suggest to push the check_variable value change down into
gfc_check_fncall_dependency, to be more aggressive wrt temporary elimination.
But if the test is not conforming, let's throw all that away.

Reply via email to