From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 117599 invoked by alias); 19 May 2018 15:50:24 -0000 Mailing-List: contact fortran-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: fortran-owner@gcc.gnu.org Received: (qmail 117563 invoked by uid 89); 19 May 2018 15:50:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=H*M:edu X-Spam-User: qpsmtpd, 2 recipients X-HELO: troutmask.apl.washington.edu Received: from troutmask.apl.washington.edu (HELO troutmask.apl.washington.edu) (128.95.76.21) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 19 May 2018 15:50:22 +0000 Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.15.2/8.15.2) with ESMTPS id w4JFoKc0095654 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 19 May 2018 08:50:20 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.15.2/8.15.2/Submit) id w4JFoJHE095653; Sat, 19 May 2018 08:50:19 -0700 (PDT) (envelope-from sgk) Date: Sat, 19 May 2018 15:50:00 -0000 From: Steve Kargl To: Paul Richard Thomas Cc: "fortran@gcc.gnu.org" , gcc-patches , Damian Rouson Subject: Re: [Patch, fortran] PR82275 - gfortran rejects valid & accepts invalid reference to dimension-remapped type SELECT TYPE selector Message-ID: <20180519155019.GA95604@troutmask.apl.washington.edu> Reply-To: sgk@troutmask.apl.washington.edu References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) X-IsSubscribed: yes X-SW-Source: 2018-05/txt/msg00057.txt.bz2 On Sat, May 19, 2018 at 09:34:13AM +0100, Paul Richard Thomas wrote: > This patch is verging on 'obvious' since there was no attempt being > made to detect dimensions where the array reference of the selector is > an element. In fact, I made an attempt when the bug was first reported > to do this, Not realizing that the elements were coming through as > DIMEN_UNKNOWN, the attempt failed. This is now catered for. > > Bootstrapped and regtested on FC27/x86_64. OK for all active branches? > OK. -- Steve