This is an automated email from the ASF dual-hosted git repository.

thisisnic pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new 681ef428a63 GH-50294: [C++][R] Missing typename in ulp_distance.cc 
breaks clang-15 builds (#50296)
681ef428a63 is described below

commit 681ef428a63b556c659b626c1e88a01a0f8d077a
Author: Nic Crane <[email protected]>
AuthorDate: Tue Jun 30 10:39:13 2026 +0100

    GH-50294: [C++][R] Missing typename in ulp_distance.cc breaks clang-15 
builds (#50296)
    
    ### Rationale for this change
    
    Broken nightlies due to older clang version on CRAN
    
    ### What changes are included in this PR?
    
    Add `typename` explicitly
    
    ### Are these changes tested?
    
    Will run CI
    
    ### Are there any user-facing changes?
    
    No
    * GitHub Issue: #50294
    
    Authored-by: Nic Crane <[email protected]>
    Signed-off-by: Nic Crane <[email protected]>
---
 cpp/src/arrow/util/ulp_distance.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpp/src/arrow/util/ulp_distance.cc 
b/cpp/src/arrow/util/ulp_distance.cc
index cbc6e92090b..912de62f987 100644
--- a/cpp/src/arrow/util/ulp_distance.cc
+++ b/cpp/src/arrow/util/ulp_distance.cc
@@ -50,7 +50,7 @@ struct FloatToUInt<util::Float16> {
 template <typename Float>
 struct UlpDistanceUtil {
  public:
-  using UIntType = FloatToUInt<Float>::Type;
+  using UIntType = typename FloatToUInt<Float>::Type;
   static constexpr UIntType kNumberOfBits = sizeof(Float) * 8;
   static constexpr UIntType kSignMask = static_cast<UIntType>(1) << 
(kNumberOfBits - 1);
 

Reply via email to