[Bug default/28641] const'ness of member functions is not detected in clang++ binaries

jwakely.gcc at gmail dot com sourceware-bugzilla@sourceware.org
Thu Dec 9 11:25:57 GMT 2021


https://sourceware.org/bugzilla/show_bug.cgi?id=28641

--- Comment #11 from Jonathan Wakely <jwakely.gcc at gmail dot com> ---
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 whether
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, but
is not actually the prvalue itself.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Libabigail mailing list