From nobody Wed Oct 23 18:30:32 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XYczr3nV3z5ZWtN; Wed, 23 Oct 2024 18:30:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XYczr1rMGz59H2; Wed, 23 Oct 2024 18:30:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729708232; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aglESRAtRicFuUeJ1ZjqwnhHkqklLOXE3kfx9gQVC2Y=; b=dn/VpWX0tvASNp4swhDc+mLR5z/N7iLsQQzwbw8OboAA6/eTZng1+WFnYRfiocWNohOMqK gdpMYX/eU5VeC+elP6JC1BRA1TsD5phtqaqt0kXAKc00XXX3muXYtmFgb+gNVDu0n/aq4T XgeJERDtieANIIJjQO9UchGbpWswE98piR2nRtiTX1pHBu4Thj4eNes3LA3wgbZX1JVwHo 6fykTvbW7Uc96G4aApG2i3Qw07r8QwhJs61mJ6l9gyrZAEiH4Hht9U3Ea+tVU+gHABp4Oc UR4IwLzu1Ac44YghW32C+UnXazEgjT3Tg1Se12Kl760Dop1u0FTB7BBjex9B2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729708232; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aglESRAtRicFuUeJ1ZjqwnhHkqklLOXE3kfx9gQVC2Y=; b=kvhLci2sHIGSY1lbsYxXjWRpOmUin+rbLKxTwKqMYd7ecIgjv7mKLaRocJ6ZvXhmgNbcsD o6ppbT+dWk/6Fmsap2GfCQ88CYNu61JvIh0+6dqfsbskY0q7OKIrIwzBfcyjKKQKrXJp/i c5Pytqmx0cpR6XSUyseXLqBCXLTnTM9nPl5mubpz6w3V+ce1lRPxGF8qu1C6TPTfMcQuE8 LqI8f5WqZq/rsbzQ/vu/OGET9qw7oQwkVeAzTRER6ZqQLXosFwFFVE1TAod4+isVvIt4Mv Z/tl7COwmQ2nJVTnTjo7W26O3t4YrJrFA7u1zBJe5KkLij+kKM9zhGHijqtQaA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729708232; a=rsa-sha256; cv=none; b=hIBszRireua1DPSiVoWRv3DX3optf/uuxo2GvMiqnKfgPiOlHAmaydAULN3yJGVfGO8YiK RcsiESa9PhYJlaMUFmDSWwgBjr7Qhj+bUNp0xgHTBP0cjAkVIi0KGHOViz53Ge3XSPcTOW ompTjPJzD9i8KYlldjoPhnuBXTaxDqxrkNxNZr1Fuie3XS1mYUx7UjG9p1I027jh2H4ajz F+TsaOYlcR5SJm7mi7KPPFRcmk5Wsd1YrVC1Ut8q4Vn6VqQF6X3hs9nGuu/AJTHvL9XofM TslTIrR2L9WpNPWR46sBAiPADHD2tdpkxUVpDaqIPD/URyqUdoL14BrXCtb5gA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XYczr1RGVz17X3; Wed, 23 Oct 2024 18:30:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49NIUWwV069089; Wed, 23 Oct 2024 18:30:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49NIUWYn069086; Wed, 23 Oct 2024 18:30:32 GMT (envelope-from git) Date: Wed, 23 Oct 2024 18:30:32 GMT Message-Id: <202410231830.49NIUWYn069086@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: 81e300df5e65 - main - libcxx atomic_ref.h: add typename keyword for difference_type declarations, otherwise older clang versions cannot compile this header. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 81e300df5e654eee3835ec2c6a2ae34cf317df72 Auto-Submitted: auto-generated The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=81e300df5e654eee3835ec2c6a2ae34cf317df72 commit 81e300df5e654eee3835ec2c6a2ae34cf317df72 Author: Dimitry Andric AuthorDate: 2024-08-05 20:07:28 +0000 Commit: Dimitry Andric 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 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 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(