https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121150

--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>:

https://gcc.gnu.org/g:6f5d89063d79c776c4d612b7240e54c53156cedd

commit r16-2345-g6f5d89063d79c776c4d612b7240e54c53156cedd
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Fri Jul 18 09:55:13 2025 +0100

    libstdc++: Fix hash<__int128> test for x32 [PR121150]

    I incorrectly assumed that all targets that support __int128 use the
    LP64 ABI, so size_t is a 64-bit type. But x32 uses ILP32 and still
    supports __int128 (because it's an ILP32 target on 64-bit hardware).

    Add casts to the tests so that we get the correct expected values using
    size_t type.

    libstdc++-v3/ChangeLog:

            PR libstdc++/121150
            * testsuite/20_util/hash/int128.cc: Cast expected values to
            size_t.

Reply via email to