From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) by sourceware.org (Postfix) with ESMTPS id C9B15385803B; Tue, 13 Feb 2024 17:21:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C9B15385803B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=troutmask.apl.washington.edu Authentication-Results: sourceware.org; spf=none smtp.mailfrom=troutmask.apl.washington.edu ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C9B15385803B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=128.95.76.21 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707844899; cv=none; b=HtlGk/1Ben7fYS1WYK6Am8GXoqysN1bwtB/20puutimgcnCdkDZbugXFcmbnwBNL5BgzWJC7YbWtBHzeIk7O6XNGaA4VwTUP1SiV+o1aBTYLZFbfIvJynH0cu2PW1pLs3tvf75nRF29/0aLpRpOMnKCmvFwr4D1p2IMqyQDXdcE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707844899; c=relaxed/simple; bh=S4x0LcFdYRau0iSLuDzrvQleXnBm2IZRc1GjFZw8HB0=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=pVKL5CUFcQoDX4KBvMfXYF9Urtxd2SoCs83kUF2DT69bKpi5aDZvQwBGpmAmFpLBHgY2uIJhfxwlLyw1hvg+4/louME1gXf01SZ3chlUx0Q0lnlEDr31hj2RMwSv1sTlUqPgnVQH/JePgRipdXkkFA9v9p/MNC8uTMobo15Z3HQ= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.17.1/8.17.1) with ESMTP id 41DHLaLj020559; Tue, 13 Feb 2024 09:21:36 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) DKIM-Filter: OpenDKIM Filter v2.10.3 troutmask.apl.washington.edu 41DHLaLj020559 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=troutmask.apl.washington.edu; s=troutmask; t=1707844896; bh=S4x0LcFdYRau0iSLuDzrvQleXnBm2IZRc1GjFZw8HB0=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=Dc4OA9+FN5lr/J8Rz9RnL74y4jVSDMfS/vvsVivdwpvPK9tstw7/+3WRywavr3rrE fbaXVmS7Sj6VyN+jm+sG77qzx/AAjmuMNAqYkBxlPunjByAPDPqE/2PFpfjk70Qlge N2QzW7tYRgdmH1msqEnhQ1nPjX/7494nRVo+hWoTaBDlAtQo9vdnLTf0XYu8ssQ9A3 a2Nn0qNZSkmlx3YDaxzwjweV0ukOZUkGvTOemxU6jBM8dvd83Zz1KRhEXTJ7Xqs4wc 7v/5TMqrWwsedDe1InwjG2hiEOVQiWEG0ZgDqrGEHWgQ60DJbmce0k2ljn9J3NSEvr jmq2U1r9/oqBA== Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.17.1/8.17.1/Submit) id 41DHLa1e020558; Tue, 13 Feb 2024 09:21:36 -0800 (PST) (envelope-from sgk) Date: Tue, 13 Feb 2024 09:21:36 -0800 From: Steve Kargl To: Harald Anlauf Cc: fortran , gcc-patches Subject: Re: [PATCH] Fortran: fix passing of optional dummies to bind(c) procedures [PR113866] Message-ID: 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: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_INVALID,DKIM_SIGNED,KAM_DMARC_STATUS,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Mon, Feb 12, 2024 at 09:57:08PM +0100, Harald Anlauf wrote: > Dear all, > > the attached patch fixes a mis-handling of optional dummy arguments > passed to optional dummy arguments of procedures with the bind(c) > attribute. When those procedures are expecting CFI descriptors, > there is no special treatment like a presence check necessary > that by default passes a NULL pointer as default. > > The testcase tries to exercise various combinations of passing > assumed-length character between bind(c) and non-bind(c), which > apparently was insufficiently covered in the testsuite. > > Regtested on x86_64-pc-linux-gnu. OK for mainline? > Yes. Thanks for filling out the more detailed testcase. -- Steve