From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 84DB6388A81A; Sun, 14 Jun 2020 15:10:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 84DB6388A81A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1592147451; bh=vc7z8DWDGfwE72ftyOkJF6zn8KNx4ObvRP/y9O5Z+4c=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Je2pe6bGH3FX437uVIog2PH44nosSQJ+EWCi1FR2UgX5QDB4Q/sHeAG8akj6KllQI 1bHl993ks+eKpXGt0Gyi/JyZHhKXTfvJIl/q14YpzrX2ZpJvTH4M+p/4ggUuJ9dX2k Ba/B23NGAIXiip7vd4uBXicjK0cgkiUUWTRo3NTE= From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/35718] deallocating non-allocated pointer target does not fail Date: Sun, 14 Jun 2020 15:10:51 +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: 4.4.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: pault 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 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: Sun, 14 Jun 2020 15:10:51 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D35718 --- Comment #8 from Thomas Koenig --- We have an unsigned short in our descriptor that we can use for keeping track of what we allocated and where. So, we have 16 bits. State we can keep around is: Type of descriptor: Allocatable, pointer, passed argument. 2 bits. Associated: No, allocated, target. 2 bits. Contiguous: 1 bit. Anything else we would need? That would still leave us 11 bit in reserve.=