From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 474B03858C36; Fri, 3 Nov 2023 17:49:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 474B03858C36 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699033792; bh=EjLZokhO7LMKWjLQexGOC3cxVLmVEjEAZMO3V2bmSCE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=xErm6eJ8Of8UMjXTEH/tXoY7iE+S/quE6xTBaB4nhAZ2LfwwB/S1Nfkjmd3N4H9v9 Wr9lBGNi+TxUVaf9z3H6YKMhWv4qUJsLWxtCfFMtNA6ivmuPeSiv180IrqHSpQR8Ve zHArzkmXmtrZ9abTFnqdMMYKN7FiaFL/MbQEqGok= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/92887] [F2008] Passing nullified/disassociated pointer or unalloc allocatable to OPTIONAL + VALUE dummy fails Date: Fri, 03 Nov 2023 17:49:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: anlauf at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D92887 --- Comment #9 from CVS Commits --- The master branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:413ac2c8608cd0378955af27f69e45274b025b32 commit r14-5111-g413ac2c8608cd0378955af27f69e45274b025b32 Author: Harald Anlauf Date: Wed Nov 1 22:55:36 2023 +0100 Fortran: passing of allocatable/pointer arguments to OPTIONAL+VALUE [PR92887] gcc/fortran/ChangeLog: PR fortran/92887 * trans-expr.cc (conv_cond_temp): Helper function for creation = of a conditional temporary. (gfc_conv_procedure_call): Handle passing of allocatable or poi= nter actual argument to dummy with OPTIONAL + VALUE attribute. Actu= al arguments that are not allocated or associated are treated as n= ot present. gcc/testsuite/ChangeLog: PR fortran/92887 * gfortran.dg/value_optional_1.f90: New test.=