This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/19168] Mismatched KINDs in SELECT CASE constucts is not handled correctly
- From: "sgk at troutmask dot apl dot washington dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Dec 2004 17:56:21 -0000
- Subject: [Bug fortran/19168] Mismatched KINDs in SELECT CASE constucts is not handled correctly
- References: <20041227174001.19168.sgk@troutmask.apl.washington.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From sgk at troutmask dot apl dot washington dot edu 2004-12-27 17:56 -------
The relevant promoton rule is found in 7.2.3.
In the numeric relational operation
x1 rel-op x2
if the types or kind type parameters of x1 and x2 differ, their values are
converted to the type and kind type parameter of the expression x1 + x2
before evaluation.
In the CASE SELECT situation, rel-op is .EQ. (or ==).
--
steve
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19168