From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 009DD3858C39; Thu, 9 Dec 2021 11:18:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 009DD3858C39 From: "gprocida at google 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:18:09 +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: gprocida at google 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: cc 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:18:10 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28641 gprocida at google dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gprocida at google dot com --- Comment #10 from gprocida at google dot com --- It appears not to be that Clang bug. On the other hand, I think there is some confusion going on here. The difference is in the const-ness of the this pointer. It is *not* the const-ness of the function (i.e., the constness of *this). Given that this itself cannot be modified, I'd say GCC is doing a better job here. abidiff --harmless /tmp/llcc.o.clang /tmp/llcc.o.gcc=20 Functions changes summary: 0 Removed, 2 Changed, 0 Added functions Variables changes summary: 0 Removed, 0 Changed, 0 Added variable 2 functions with some indirect sub-type change: [C] 'method void X::foo()' at llcc.cc:8:1 has some indirect sub-type chan= ges: implicit parameter 0 of type 'X*' changed: entity changed from 'X*' to 'X* const' type size hasn't changed [C] 'method void X::foo()' at llcc.cc:12:1 has some indirect sub-type changes: implicit parameter 0 of type 'const X*' changed: entity changed from 'const X*' to 'const X* const' type size hasn't changed --=20 You are receiving this mail because: You are on the CC list for the bug.=