From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DB0DC384601E; Tue, 28 May 2024 20:30:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DB0DC384601E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1716928241; bh=L0h2whHU1eQMWALCnZJo0G4p7lnzQ1ou2qXLt933Dp0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Aq+F1cLHe0CT1vyvvy2eTnh4yX/HSy/lpbUMd77uzmsMDRkapDZPJo8wXMgczEB7+ Lnd9NBGxYq9zgNQPinzkbO7jP2rrslnD4wxVqbkFrhjioLIC2hfOJnnjVHaDvngYFt 2smPWekTlDXMVEZHr41cbbZhkyYKUwyzKKXtLvzw= From: "anlauf at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/115260] Corruption of derived type data when array temporarys of type occur Date: Tue, 28 May 2024 20:30:41 +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: 14.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: anlauf at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_known_to_work cf_reconfirmed_on priority cf_known_to_fail bug_status everconfirmed keywords 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=3D115260 anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |9.5.0 Last reconfirmed| |2024-05-28 Priority|P3 |P4 Known to fail| |10.5.0, 11.4.0, 12.3.0, | |13.3.0, 14.1.0, 15.0 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Keywords| |wrong-code --- Comment #1 from anlauf at gcc dot gnu.org --- Confirmed. The tree-dump suggests that the unpack frees the component arrays data, ida= ta so that the final prints access freed memory. In the testcase this only happens for the explicit-size dummies when they are intent(inout), but not for intent(in).=