From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2F7A33858C83; Wed, 22 Feb 2023 20:30:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2F7A33858C83 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677097807; bh=GK5FbeAufpDxAjZh2R8GHyPQm2weihwfuCJL5uB7GIA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=uBpt3lBO7Wg7JGaILtldKq7nIDxkFvA6ruBaLXHqG0zL+AMj2v2Lvm4HNg2UcyYED sj99hEUnbhvA+u1Avs2QKFwxqvFBmhCmEDg6I4Zy6yFnUQiTZ6BJdO/HEdDJ0k7Cfi JGdXG+8peQ4vssZFM+4yBrNd+hmmDIWLPXXs+0rA= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/108893] attribute access read_only Date: Wed, 22 Feb 2023 20:30:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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=3D108893 --- Comment #1 from Andrew Pinski --- Isn't this the same as PR 108871 ? Also, the access attribute does not imply the attribute nonnull; it may be appropriate to add both attributes at the declaration of a function that unconditionally manipulates a buffer via a pointer argument. See the nonnull attribute for more information and caveats.=