Date: Wed, 23 Oct 2024 18:30:32 GMT From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 81e300df5e65 - main - libcxx atomic_ref.h: add typename keyword for difference_type declarations, otherwise older clang versions cannot compile this header. Message-ID: <202410231830.49NIUWYn069086@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=81e300df5e654eee3835ec2c6a2ae34cf317df72 commit 81e300df5e654eee3835ec2c6a2ae34cf317df72 Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2024-08-05 20:07:28 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2024-10-23 18:26:37 +0000 libcxx atomic_ref.h: add typename keyword for difference_type declarations, otherwise older clang versions cannot compile this header. PR: 280562 MFC after: 1 month --- contrib/llvm-project/libcxx/include/__atomic/atomic_ref.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/llvm-project/libcxx/include/__atomic/atomic_ref.h b/contrib/llvm-project/libcxx/include/__atomic/atomic_ref.h index 156f1961151c..f5ab6ffc9e77 100644 --- a/contrib/llvm-project/libcxx/include/__atomic/atomic_ref.h +++ b/contrib/llvm-project/libcxx/include/__atomic/atomic_ref.h @@ -241,7 +241,7 @@ template <class _Tp> struct atomic_ref<_Tp> : public __atomic_ref_base<_Tp> { using __base = __atomic_ref_base<_Tp>; - using difference_type = __base::value_type; + using difference_type = typename __base::value_type; _LIBCPP_HIDE_FROM_ABI explicit atomic_ref(_Tp& __obj) : __base(__obj) { _LIBCPP_ASSERT_ARGUMENT_WITHIN_DOMAIN( @@ -287,7 +287,7 @@ template <class _Tp> struct atomic_ref<_Tp> : public __atomic_ref_base<_Tp> { using __base = __atomic_ref_base<_Tp>; - using difference_type = __base::value_type; + using difference_type = typename __base::value_type; _LIBCPP_HIDE_FROM_ABI explicit atomic_ref(_Tp& __obj) : __base(__obj) { _LIBCPP_ASSERT_ARGUMENT_WITHIN_DOMAIN(
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202410231830.49NIUWYn069086>