gcc/libstdc++-v3/include/c_global
Jonathan Wakely f4932c59df
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 <tkaminsk@redhat.com>
2025-07-17 09:48:12 +01:00
..
cassert Update copyright years. 2025-01-02 11:59:57 +01:00
ccomplex libstdc++: Remove #warning from <ciso646> for C++17 [PR120187] 2025-05-12 12:28:24 +01:00
cctype Update copyright years. 2025-01-02 11:59:57 +01:00
cerrno Update copyright years. 2025-01-02 11:59:57 +01:00
cfenv Update copyright years. 2025-01-02 11:59:57 +01:00
cfloat Update copyright years. 2025-01-02 11:59:57 +01:00
cinttypes Update copyright years. 2025-01-02 11:59:57 +01:00
ciso646 libstdc++: Remove #warning from <ciso646> for C++17 [PR120187] 2025-05-12 12:28:24 +01:00
climits Update copyright years. 2025-01-02 11:59:57 +01:00
clocale Update copyright years. 2025-01-02 11:59:57 +01:00
cmath libstdc++: Use __promote_3 for std::hypot [PR121097] 2025-07-17 09:48:12 +01:00
csetjmp Update copyright years. 2025-01-02 11:59:57 +01:00
csignal Update copyright years. 2025-01-02 11:59:57 +01:00
cstdalign libstdc++: Remove #warning from <ciso646> for C++17 [PR120187] 2025-05-12 12:28:24 +01:00
cstdarg Update copyright years. 2025-01-02 11:59:57 +01:00
cstdbool libstdc++: Remove #warning from <ciso646> for C++17 [PR120187] 2025-05-12 12:28:24 +01:00
cstddef Update copyright years. 2025-01-02 11:59:57 +01:00
cstdint Update copyright years. 2025-01-02 11:59:57 +01:00
cstdio Update copyright years. 2025-01-02 11:59:57 +01:00
cstdlib Update copyright years. 2025-01-02 11:59:57 +01:00
cstring Update copyright years. 2025-01-02 11:59:57 +01:00
ctgmath libstdc++: Remove #warning from <ciso646> for C++17 [PR120187] 2025-05-12 12:28:24 +01:00
ctime Update copyright years. 2025-01-02 11:59:57 +01:00
cuchar Update copyright years. 2025-01-02 11:59:57 +01:00
cwchar Update copyright years. 2025-01-02 11:59:57 +01:00
cwctype Update copyright years. 2025-01-02 11:59:57 +01:00