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

--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Jonathan Wakely
<[email protected]>:

https://gcc.gnu.org/g:3d301adc99012d095a9291d9fb769ebd4481a5f1

commit r14-11991-g3d301adc99012d095a9291d9fb769ebd4481a5f1
Author: Jonathan Wakely <[email protected]>
Date:   Tue Jul 15 21:29:33 2025 +0100

    libstdc++: Use __promote_3 for std::hypot [PR121097]

    The __promoted_t alias is only defined when __cpp_fold_expressions is
    defined, which might not be the case for some hypothetical C++17
    compilers.

    Change the 3-arg std::hypot to just use __gnu_cxx::__promote_3 which is
    always available.

    libstdc++-v3/ChangeLog:

            PR libstdc++/121097
            * include/c_global/cmath (hypot): Use __promote_3 instead of
            __promoted.

    Reviewed-by: Tomasz KamiÅski <[email protected]>
    (cherry picked from commit f4932c59df387a505de69a5a1015a03caa4ccf08)

Reply via email to