This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/40196] F2003: Type parameter inquiry (str%len, a%kind) and Complex parts (z%re, z%im)
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 May 2009 11:36:31 -0000
- Subject: [Bug fortran/40196] F2003: Type parameter inquiry (str%len, a%kind) and Complex parts (z%re, z%im)
- References: <bug-40196-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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