[PATCH] c++: Add std::to_underlying to the set of stdlib functions that are always folded
Jason Merrill
jason@redhat.com
Wed May 14 02:17:03 GMT 2025
On 5/13/25 7:15 PM, Ville Voutilainen wrote:
> On Tue, 13 May 2025 at 23:42, Ville Voutilainen
> <ville.voutilainen@gmail.com> wrote:
>
>>>> It seems to me that this
>>>> sanity check is checking that it's a cast between
>>>> references for the other ones, and that's just unsuitable for
>>>> to_underlying. I would suggest just removing that sanity
>>>> check and trusting the library.
>>>
>>> That's fine too.
>>
>> I'll test the attached.
>
> Tested on Linux-PPC64 (gcc112), changelogs as before, ok for trunk?
OK.
Jason
More information about the Libstdc++
mailing list