[Bug fortran/40196] F2003: Type parameter inquiry (str%len, a%kind) and Complex parts (z%re, z%im)
burnus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue May 19 11:36:00 GMT 2009
------- Comment #1 from burnus at gcc dot gnu dot org 2009-05-19 11:36 -------
Another related item are complex parts; contrary to the type parameter inquiry
above, those are lvalues and can be assigned to. (Again a F2003 feature, quote
is however from F2008.)
"R615 complex-part-designator is designator % RE
or designator % IM
C621 (R615) The designator shall be of complex type.
If complex-part-designator is designator%RE it designates the real part of
designator. If it is designator%IM it designates the imaginary part of
designator. The type of a complex-part-designator is real, and its kind and
shape are those of the designator.
NOTE 6.6
The following are examples of complex part designators:
impedance%re !-- Same value as REAL(impedance)
fft%im !-- Same value as AIMAG(fft)
x%im = 0.0 !-- Sets the imaginary part of X to zero"
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|F2003: Type parameter |F2003: Type parameter
|inquiry: str%len, a%kind |inquiry (str%len, a%kind)
| |and Complex parts (z%re,
| |z%im)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40196
More information about the Gcc-bugs
mailing list