From aea7b14e7000419688cb6fcad5d4b57166a90561 Mon Sep 17 00:00:00 2001 From: Nghia Truong Date: Thu, 3 Feb 2022 12:22:05 -0700 Subject: [PATCH] Add specific GCC version to clarify the bug --- cpp/src/binaryop/compiled/util.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpp/src/binaryop/compiled/util.cpp b/cpp/src/binaryop/compiled/util.cpp index d8f1eb03a16..9f52a5e7886 100644 --- a/cpp/src/binaryop/compiled/util.cpp +++ b/cpp/src/binaryop/compiled/util.cpp @@ -46,9 +46,9 @@ struct common_type_functor { return data_type{type_to_id()}; } - // A compiler bug may cause a compilation error when using empty initializer list to construct - // an std::optional object containing no `data_type` value. Therefore, we should explicitly - // return `std::nullopt` instead. + // A GCC-10 compiler bug may cause a compilation error when using empty initializer list to + // construct an std::optional object containing no `data_type` value. Therefore, we should + // explicitly return `std::nullopt` instead. return std::nullopt; } };