[PATCH] libstdc++: Implement P2835R7 Expose std::atomic_ref's object address

Yuao Ma addr2line@gmail.com
Fri Oct 10 14:18:28 GMT 2025


On Fri, Oct 10, 2025 at 2:13 PM Tomasz Kaminski <tkaminsk@redhat.com> wrote:
> On Wed, Oct 8, 2025 at 11:10 AM Yuao Ma <addr2line@gmail.com> wrote:
>>
>> Hi Tomasz,
>>
>> On Wed, Oct 8, 2025 at 3:27 PM Tomasz Kaminski <tkaminsk@redhat.com> wrote:
>> >> This patch adds support for the c++26 paper "P2835R7 Expose
>> >> std::atomic_ref's object address", including test cases and feature
>> >> test macro. Please take a look when you have time, thanks!
>> >
>> > The patch LGTM.
>> > It however conflicts with in-flight patch for cv ref support for atomic_ref,
>> > after which this function would be implemented onces for __atomic_ref_base<T const>.
>> > Link: https://gcc.gnu.org/pipermail/libstdc++/2025-September/063680.html
>>
>> Thank you for informing me! Could you please ping me once this
>> refactor patch series has been merged so that I can update my patch?
>> Thank you!
>
> The refactor patch is now merged. Could you also add test for cv-qualified
> types to your test cases in updated patch?
>

Done! The updated patch now implements the address for
__atomic_ref_base and the testcases have added cv-qualified types.
Please take another look.

Yuao
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libstdc-Implement-P2835R7-Expose-std-atomic_ref-s-ob.patch
Type: application/octet-stream
Size: 3985 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20251010/ac6ddcf7/attachment.obj>


More information about the Libstdc++ mailing list