From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A0B05395CC8B; Thu, 30 Apr 2020 16:49:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A0B05395CC8B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1588265362; bh=HsYtmHwWYifRf9DOGOwh54FfZYQh701Z+uV31SampsY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=BMtvaKc5Cskc4DXUxTHQ84N2EJFUEMoxEEPzG9b9qC6okJCC5uAg1NVYiYQh+rlhZ DQHuOg7lh06B9hAIuJ6MLUtegd/1m5BmbkiuBFjavhSMeDYES2qlgNKqe7Ka6ERljn 3sYTjSLaErOlwYEhj3v5Lpe1w/pIvGt5Fz6qzhyE= From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/94788] [8/9 Regression] Severe regression leading to double free in tcache Date: Thu, 30 Apr 2020 16:49:22 +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: 9.3.1 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig 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: 9.4 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 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: Thu, 30 Apr 2020 16:49:22 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94788 --- Comment #37 from Thomas Koenig --- (In reply to J=C3=BCrgen Reuter from comment #36) > Hm, I hope I didn't change the flavor of the bug, but you can cross-check > with the very first reproducer which contains our code more or less > unchanged (except for the build setup with autotools etc.). Since your latest reproducer fails with any version I tried, I suspect you may have deleted the one line too many. Hmm, checking... yes, this is t= he case. subroutine rt_data_activate (local) class(rt_data_t), intent(inout), target :: local class(rt_data_t), pointer :: global if (associated (global)) then local%logfile =3D global%logfile local%pn =3D global%pn end if end subroutine rt_data_activate A previous version has global =3D> local%context as the first executable statement but that is rejected now; and if I comment out the whole body of the subroutine, there is no error.=