This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/19168] Mismatched KINDs in SELECT CASE constucts is not handled correctly


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]