From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10570 invoked by alias); 12 Oct 2015 15:41:48 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 10545 invoked by uid 89); 12 Oct 2015 15:41:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.0 required=5.0 tests=AWL,BAYES_20,BIGNUM_EMAILS,KAM_LAZY_DOMAIN_SECURITY,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 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 (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 12 Oct 2015 15:41:46 +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 t9CFfieq074156 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 12 Oct 2015 08:41:44 -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 t9CFfh84074155; Mon, 12 Oct 2015 08:41:43 -0700 (PDT) (envelope-from sgk) Date: Mon, 12 Oct 2015 15:41:00 -0000 From: Steve Kargl To: Louis Krupp Cc: gcc-patches , fortran Subject: Re: Possible patch for PR fortran/67806 Message-ID: <20151012154143.GA74102@troutmask.apl.washington.edu> References: <1505a7c9fab.f52df49364480.2316667444406332595@zoho.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1505a7c9fab.f52df49364480.2316667444406332595@zoho.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-SW-Source: 2015-10/txt/msg01147.txt.bz2 On Sun, Oct 11, 2015 at 10:18:48PM -0700, Louis Krupp wrote: > The problem involves a derived type with a character component declared CHARACTER(NULL()) or CHARACTER(NULL(n)), where mold argument n is an integer pointer. > I was looking at 67805 this weekend, which is somewhat related to this PR. AFAICT, gfortran does no checking for n in CHARACTER(LEN=n). n should be a scalar-int-expr (that is scalar INTEGER expression). NULL() is not an integer, and NULL(n) is a disassociated pointer. So, I believe neither can appear in an scalar-int-expr. Note, also that there is a table in 13.7.125 on where NULL() can appear. My patch for 67805 leads to one regression that I've been unable to resolve. -- Steve