From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 12D483857B88; Sun, 10 Dec 2023 20:14:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 12D483857B88 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1702239266; bh=f0sJm5Lc+8BCg00kjwS749jtan8ofasczCpI7kzZNOk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bkkXBkS7QdiEiPYGzKGy9h0JOeIHcbCBDxOadujCf7q4LUaK431+XjTiFvDr82OCG TfmtXfMZ4pCtl/ZuKS+JDt6Y7HstZloAHyrOOHnsKtjdeUAkqP3EyH8IL0vL6KEGIN jFPY3lzlpXdbNYIXHyJt/1jY+IfzpkU8Bx8r+rk8= 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: Sun, 10 Dec 2023 20:14:24 +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 #6 from GCC Commits --- The releases/gcc-13 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:7a2f4af9b1b12d8b1f1b4cf4ddb812f2a48ce9ff commit r13-8142-g7a2f4af9b1b12d8b1f1b4cf4ddb812f2a48ce9ff 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. (cherry picked from commit 27ce74fa23c93c1189c301993cd19ea766e6bdb5)=