From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2629C385B83C; Sat, 2 Dec 2023 14:15:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2629C385B83C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701526557; bh=EiK4A1HnrDmFap5AJArWLG41uWSC6om8EwcwZsO1Mx8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=AVlhtDRdC3wCuZDmP3Qxy9Oe7yw9kqqmoZOLbXkOwlsd/1Ct6a7EhqKMIU4CiFCHd bF2jSZcEGfhxB46Vlu6fFHwF5Ko7Os64I8pzxpbaRFYGzQ4iF2zgBssL7gC3KzTJjR LOswRL3wB6Ig5SXwOFT/Q+hjfO5R6icMgWk+PZIQ= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/93762] Truncation of deferred-length string when passing as optional Date: Sat, 02 Dec 2023 14:15:54 +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: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned 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=3D93762 --- Comment #5 from GCC Commits --- The master branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:27ce74fa23c93c1189c301993cd19ea766e6bdb5 commit r14-6081-g27ce74fa23c93c1189c301993cd19ea766e6bdb5 Author: Harald Anlauf Date: Fri Dec 1 22:44:30 2023 +0100 Fortran: deferred-length character optional dummy arguments [PR93762,PR100651] gcc/fortran/ChangeLog: PR fortran/93762 PR fortran/100651 * trans-array.cc (gfc_trans_deferred_array): Add presence check for optional deferred-length character dummy arguments. * trans-expr.cc (gfc_conv_missing_dummy): The character length = for deferred-length dummy arguments is passed by reference, so that its value can be returned. Adjust handling for optional dummie= s. gcc/testsuite/ChangeLog: PR fortran/93762 PR fortran/100651 * gfortran.dg/optional_deferred_char_1.f90: New test.=