gcc/libstdc++-v3/include/c_global
Jonathan Wakely 877592a62e
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>
(cherry picked from commit f4932c59df)
2025-09-04 13:31:38 +01:00
..
cassert Update copyright years. 2023-01-16 11:52:17 +01:00
ccomplex Update copyright years. 2023-01-16 11:52:17 +01:00
cctype Update copyright years. 2023-01-16 11:52:17 +01:00
cerrno Update copyright years. 2023-01-16 11:52:17 +01:00
cfenv Update copyright years. 2023-01-16 11:52:17 +01:00
cfloat Update copyright years. 2023-01-16 11:52:17 +01:00
cinttypes Update copyright years. 2023-01-16 11:52:17 +01:00
ciso646 Update copyright years. 2023-01-16 11:52:17 +01:00
climits Update copyright years. 2023-01-16 11:52:17 +01:00
clocale Update copyright years. 2023-01-16 11:52:17 +01:00
cmath libstdc++: Use __promote_3 for std::hypot [PR121097] 2025-09-04 13:31:38 +01:00
csetjmp Update copyright years. 2023-01-16 11:52:17 +01:00
csignal Update copyright years. 2023-01-16 11:52:17 +01:00
cstdalign Update copyright years. 2023-01-16 11:52:17 +01:00
cstdarg Update copyright years. 2023-01-16 11:52:17 +01:00
cstdbool Update copyright years. 2023-01-16 11:52:17 +01:00
cstddef Update copyright years. 2023-01-16 11:52:17 +01:00
cstdint Update copyright years. 2023-01-16 11:52:17 +01:00
cstdio Update copyright years. 2023-01-16 11:52:17 +01:00
cstdlib Update copyright years. 2023-01-16 11:52:17 +01:00
cstring Update copyright years. 2023-01-16 11:52:17 +01:00
ctgmath Update copyright years. 2023-01-16 11:52:17 +01:00
ctime Update copyright years. 2023-01-16 11:52:17 +01:00
cuchar Update copyright years. 2023-01-16 11:52:17 +01:00
cwchar Update copyright years. 2023-01-16 11:52:17 +01:00
cwctype Update copyright years. 2023-01-16 11:52:17 +01:00