From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23652 invoked by alias); 27 Dec 2004 17:56:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 23634 invoked by uid 48); 27 Dec 2004 17:56:21 -0000 Date: Mon, 27 Dec 2004 17:56:00 -0000 Message-ID: <20041227175621.23633.qmail@sourceware.org> From: "sgk at troutmask dot apl dot washington dot edu" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20041227174001.19168.sgk@troutmask.apl.washington.edu> References: <20041227174001.19168.sgk@troutmask.apl.washington.edu> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug fortran/19168] Mismatched KINDs in SELECT CASE constucts is not handled correctly X-Bugzilla-Reason: CC X-SW-Source: 2004-12/txt/msg03644.txt.bz2 List-Id: ------- 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