From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 068F23858431; Thu, 9 Dec 2021 11:25:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 068F23858431 From: "jwakely.gcc at gmail dot com" To: libabigail@sourceware.org Subject: [Bug default/28641] const'ness of member functions is not detected in clang++ binaries Date: Thu, 09 Dec 2021 11:25:57 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: libabigail X-Bugzilla-Component: default X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jwakely.gcc at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dodji at redhat dot com 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: libabigail@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list of the Libabigail project List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Dec 2021 11:25:58 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28641 --- Comment #11 from Jonathan Wakely --- Abigail should just ignore that completely. The implicit parameter is not observable or accessible to user code, and there is no way to modify it whe= ther or not it's "declared" as X* const or X*. That implicit parameter is not the `this` pointer, it's the _value_ of the `this` pointer, but that's not the same thing. `this` is a keyword that produces a prvalue of type "pointer to cv X" so it's always non-const (but unmodifiable, because it's a prvalue of fundamental type). The implicit parameter is what the compiler uses to provide the value of that prvalue, b= ut is not actually the prvalue itself. --=20 You are receiving this mail because: You are on the CC list for the bug.=