From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 341BE385DC14; Sat, 23 May 2020 19:13:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 341BE385DC14 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1590261208; bh=pUD4Dev0cB64b29ekWDzDjGfE7Ya/o2Ulql/7PwUAzg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=aJBS0gXuPmbzdstgjSIWjHWVDbnPg94Ne74HTHmPMYPrBjF7xkRx6A5womamQkpIv Y8jD/ScPEeSX7I6Wkuw7zgi/LncVtAfcTdl5azTvqTBxy8ryUSUq9PcfSJT/A9untT 4pmoQhfj89YhD90LGDbeTQiDG/ZD1Zl91g6OEJvk= From: "anlauf at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/94361] [8/9/10/11 Regression] Memory leak in nested types with final Date: Sat, 23 May 2020 19:13:28 +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: 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: 8.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 May 2020 19:13:28 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94361 anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tkoenig at gcc dot gnu.org --- Comment #5 from anlauf at gcc dot gnu.org --- Reverting the commit commit b81f7b83631be7dedcdcf44eed6dd575ada3ac23 Author: Thomas Koenig Date: Sat Apr 6 22:10:28 2019 +0000 re PR fortran/87352 (Large stack usage with new gfortran) 2019-04-06 Thomas Koenig PR fortran/87352 * gfortran.h (gfc_component): Add finalized field. * class.c (finalize_component): If the component is already finalized, return early. Set component->finalized on exit. 2019-04-06 Thomas Koenig PR fortran/87352 * gfortran.dg/finalize_28.f90: Adjust count of __builtin_free. * gfortran.dg/finalize_33.f90: Likewise. * gfortran.dg/finalize_34.f90: New test. From-SVN: r270184 fixes the memory leak. CCing Thomas.=