Re: Standards question regarding intrinsics with complex arguments



Richard Maine wrote:
Paul van Delst <Paul.vanDelst@xxxxxxxx> wrote:

I believe the code in question is standard Fortran95 and that the compiler
is incorrect in producing these warnings. Section 4.3.1.3 (Complex Types)
of the Fortran95 standard states:

"Each approximation method used to represent data entities of
type real shall be available for both the real and imaginary
parts of a data entity of type complex....
[also cites the intrinsic descriptions from the standard]

An IBM person has since told me that:
<quote>
...I suspect the standard does not require an implementation to support
any precision in complex intrinsic functions other than the default.
Therefore aimag(z) is only standards compliant if z is a default precision
complex number.
</quote>

That is just plain wrong. There isn't any defensible basis for it. You
have the relevant citations already. At the least, since the standard
requires supporty of double precision real, the citations you found also
require support of double precision complex, including all the relevant
intrinsics. For double precision, there just is no "out".

[additional comments snipped]

Thanks very much, Richard. It was just the backbone strengthening I needed to continue haranguing (in a collegial manner, of course) the support folks.

cheers,

paulv
.



Relevant Pages

  • Re: Standards question regarding intrinsics with complex arguments
    ... ...I suspect the standard does not require an implementation to support ... Therefore aimagis only standards compliant if z is a default precision ... to do more than just leave out random things like some intrinsics. ...
    (comp.lang.fortran)
  • compile error on alpha - binutils problem?
    ... {standard input}:246: Error: macro requires $at register while noat in effect ... # PCCARD support ...
    (Linux-Kernel)
  • Re: Fadal 104/D(eceased)
    ... >> CNC controls. ... >> runtime program toggle from single precision to double precision ... >> My question is that we have standard NEMA motors, ... Why not standard controllers and g/n ...
    (alt.machines.cnc)
  • Re: Fadal 104/D(eceased)
    ... > CNC controls. ... > runtime program toggle from single precision to double precision ... > power why can't a standard ... Why not standard controllers and g/n ...
    (alt.machines.cnc)
  • Re: Fadal 104/D(eceased)
    ... > CNC controls. ... > runtime program toggle from single precision to double precision ... > power why can't a standard ... Why not standard controllers and g/n ...
    (alt.machines.cnc)