[Patch, fortran] PR59026 - ELEMENTAL procedure with VALUE arguments emits wrong code
Paul Richard Thomas
paul.richard.thomas@gmail.com
Sun Feb 9 19:46:00 GMT 2014
Dear All,
Committed as revision 207645 - thanks for review and RM OK.
Cheers
Paul
On 9 February 2014 13:55, Richard Biener <rguenther@suse.de> wrote:
> On February 8, 2014 6:48:08 PM GMT+01:00, Paul Richard Thomas <paul.richard.thomas@gmail.com> wrote:
>>Dear All,
>>
>>This is another corner of a corner case that is not a regression but
>>fixes a wrong-code-on-valid.
>>
>>At present, an actual argument of an elemental procedure with the
>>VALUE attribute is not passed by value. The fix is obvious.
>>
>>Bootstraps and regtests on FC17/x86_64 - OK for trunk, 4.8 and 4.7?
>
> Ok from a RM perspective.
>
> Richard.
>
>>Cheers
>>
>>Paul
>>
>>2014-02-08 Paul Thomas <pault@gcc.gnu.org>
>>
>> PR fortran/59026
>> * trans-expr.c (gfc_conv_procedure_call): Pass the value of the
>> actual argument to a formal argument with the value attribute
>> in an elemental procedure.
>>
>>2014-02-08 Paul Thomas <pault@gcc.gnu.org>
>>
>> PR fortran/59026
>> * gfortran.dg/elemental_by_value_1.f90 : New test
>
>
--
The knack of flying is learning how to throw yourself at the ground and miss.
--Hitchhikers Guide to the Galaxy
More information about the Fortran
mailing list