diff --git a/libstdc++-v3/include/bits/chrono_io.h b/libstdc++-v3/include/bits/chrono_io.h index 37a296fed7e..d152397891f 100644 --- a/libstdc++-v3/include/bits/chrono_io.h +++ b/libstdc++-v3/include/bits/chrono_io.h @@ -1882,8 +1882,8 @@ namespace __format { using _Attoseconds = _ChronoData<_CharT>::_Attoseconds; using _CRep = common_type_t<_Rep, typename _Attoseconds::rep>; - chrono::duration<_CRep, _Period> subs(__d.count()); - return chrono::duration_cast<_Attoseconds>(subs); + chrono::duration<_CRep, _Period> __subs(__d.count()); + return chrono::duration_cast<_Attoseconds>(__subs); } } diff --git a/libstdc++-v3/include/bits/fs_path.h b/libstdc++-v3/include/bits/fs_path.h index 313c64bac43..f0c8c47f0ae 100644 --- a/libstdc++-v3/include/bits/fs_path.h +++ b/libstdc++-v3/include/bits/fs_path.h @@ -1304,33 +1304,33 @@ namespace __detail inline path path::stem() const { - auto ext = _M_find_extension(); - if (ext.first && ext.second != 0) - return path{ext.first->substr(0, ext.second)}; + auto __ext = _M_find_extension(); + if (__ext.first && __ext.second != 0) + return path{__ext.first->substr(0, __ext.second)}; return {}; } inline path path::extension() const { - auto ext = _M_find_extension(); - if (ext.first && ext.second != string_type::npos) - return path{ext.first->substr(ext.second)}; + auto __ext = _M_find_extension(); + if (__ext.first && __ext.second != string_type::npos) + return path{__ext.first->substr(__ext.second)}; return {}; } inline bool path::has_stem() const noexcept { - auto ext = _M_find_extension(); - return ext.first && ext.second != 0; + auto __ext = _M_find_extension(); + return __ext.first && __ext.second != 0; } inline bool path::has_extension() const noexcept { - auto ext = _M_find_extension(); - return ext.first && ext.second != string_type::npos; + auto __ext = _M_find_extension(); + return __ext.first && __ext.second != string_type::npos; } inline bool diff --git a/libstdc++-v3/include/ext/concurrence.h b/libstdc++-v3/include/ext/concurrence.h index ed37fd8e2af..b840bd3a7d7 100644 --- a/libstdc++-v3/include/ext/concurrence.h +++ b/libstdc++-v3/include/ext/concurrence.h @@ -290,22 +290,22 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION #endif } - void wait(__mutex *mutex) + void wait(__mutex *__mx) { #if __GTHREADS { - if (__gthread_cond_wait(&_M_cond, mutex->gthread_mutex()) != 0) + if (__gthread_cond_wait(&_M_cond, __mx->gthread_mutex()) != 0) __throw_concurrence_wait_error(); } #endif } - void wait_recursive(__recursive_mutex *mutex) + void wait_recursive(__recursive_mutex *__mx) { #if __GTHREADS { if (__gthread_cond_wait_recursive(&_M_cond, - mutex->gthread_recursive_mutex()) + __mx->gthread_recursive_mutex()) != 0) __throw_concurrence_wait_error(); } diff --git a/libstdc++-v3/include/pstl/glue_algorithm_defs.h b/libstdc++-v3/include/pstl/glue_algorithm_defs.h index e5260e15a1a..d43112f8644 100644 --- a/libstdc++-v3/include/pstl/glue_algorithm_defs.h +++ b/libstdc++-v3/include/pstl/glue_algorithm_defs.h @@ -202,7 +202,7 @@ generate(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator _ template __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> -generate_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size count, _Generator __g); +generate_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __count, _Generator __g); // [alg.remove] diff --git a/libstdc++-v3/include/std/ranges b/libstdc++-v3/include/std/ranges index 2cc17eb0f07..95e0109a10c 100644 --- a/libstdc++-v3/include/std/ranges +++ b/libstdc++-v3/include/std/ranges @@ -5261,8 +5261,9 @@ namespace views::__adaptor { return _M_zip.size(); } }; - template - zip_transform_view(_Fp, Rs&&...) -> zip_transform_view<_Fp, views::all_t...>; + template + zip_transform_view(_Fp, _Rs&&...) + -> zip_transform_view<_Fp, views::all_t<_Rs>...>; template requires (view<_Vs> && ...) && (sizeof...(_Vs) > 0) && is_object_v<_Fp> @@ -8511,9 +8512,10 @@ namespace views::__adaptor template concept __cartesian_product_is_sized = (sized_range<_Vs> && ...); - template class FirstSent, typename _First, typename... _Vs> + template class _FirstSent, + typename _First, typename... _Vs> concept __cartesian_is_sized_sentinel - = (sized_sentinel_for>, + = (sized_sentinel_for<_FirstSent<__maybe_const_t<_Const, _First>>, iterator_t<__maybe_const_t<_Const, _First>>> && ... && (sized_range<__maybe_const_t<_Const, _Vs>> diff --git a/libstdc++-v3/include/tr1/riemann_zeta.tcc b/libstdc++-v3/include/tr1/riemann_zeta.tcc index 8a0daf6bb15..c26ffdc762f 100644 --- a/libstdc++-v3/include/tr1/riemann_zeta.tcc +++ b/libstdc++-v3/include/tr1/riemann_zeta.tcc @@ -83,9 +83,9 @@ namespace tr1 if (__s < _Tp(1)) std::__throw_domain_error(__N("Bad argument in zeta sum.")); - const unsigned int max_iter = 10000; + const unsigned int __max_iter = 10000; _Tp __zeta = _Tp(0); - for (unsigned int __k = 1; __k < max_iter; ++__k) + for (unsigned int __k = 1; __k < __max_iter; ++__k) { _Tp __term = std::pow(static_cast<_Tp>(__k), -__s); if (__term < std::numeric_limits<_Tp>::epsilon())