Behavior of ELEMENTAL function with VALUE attribute

N.M. Maclaren nmm1@cam.ac.uk
Wed Nov 6 20:08:00 GMT 2013


On Nov 6 2013, FX wrote:

>> I think it is a bug.
>> 
>> VALUE appears in very few places in Sec. 12 of F2008.  None of
>> those occurence suggest that your code is broken.
>
> Thanks. The Intel compiler accepts it, so with three of us in agreement, 
> I filed it as PR 59026 
> (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59026).

Ah!  I misread what was going on earlier, so I take back what I said,
and agree that is a bug.  I thought that you were objecting to the
redundant copy (which may be unfortunate, but is not a bug).  Not
accepting that code definitely is one.

My general points about the potential for VALUE to affect the actual
representation remain, of course, but that's secondary to this simple
code-generation error.


Regards,
Nick Maclaren.





More information about the Fortran mailing list