Comments (2)
In case it's helpful, it also reproduces in this ClickHouse's PR:
May 13 22:40:20 /build/contrib/abseil-cpp/absl/container/internal/raw_hash_set.h:562:44: error: The value '0' provided to the cast expression is not in the valid range of values for 'ctrl_t' [clang-analyzer-optin.core.EnumCastOutOfRange,-warnings-as-errors]
May 13 22:40:20 562 | inline bool IsFull(ctrl_t c) { return c >= static_cast<ctrl_t>(0); }
May 13 22:40:20 | ^
May 13 22:40:20 /build/contrib/abseil-cpp/absl/container/internal/raw_hash_set.h:484:12: note: enum declared here
May 13 22:40:20 484 | enum class ctrl_t : int8_t {
May 13 22:40:20 | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~
May 13 22:40:20 485 | kEmpty = -128, // 0b10000000
May 13 22:40:20 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
May 13 22:40:20 486 | kDeleted = -2, // 0b11111110
May 13 22:40:20 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
May 13 22:40:20 487 | kSentinel = -1, // 0b11111111
May 13 22:40:20 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
May 13 22:40:20 488 | };
May 13 22:40:20 | ~
May 13 22:40:20 /build/src/Interpreters/ActionsDAG.cpp:2750:9: note: Assuming the condition is false
May 13 22:40:20 2750 | if (sort_description.empty())
May 13 22:40:20 | ^~~~~~~~~~~~~~~~~~~~~~~~
May 13 22:40:20 /build/src/Interpreters/ActionsDAG.cpp:2750:5: note: Taking false branch
May 13 22:40:20 2750 | if (sort_description.empty())
May 13 22:40:20 | ^
May 13 22:40:20 /build/src/Interpreters/ActionsDAG.cpp:2753:9: note: Assuming the condition is false
May 13 22:40:20 2753 | if (hasArrayJoin())
May 13 22:40:20 | ^~~~~~~~~~~~~~
May 13 22:40:20 /build/src/Interpreters/ActionsDAG.cpp:2753:5: note: Taking false branch
May 13 22:40:20 2753 | if (hasArrayJoin())
May 13 22:40:20 | ^
May 13 22:40:20 /build/src/Interpreters/ActionsDAG.cpp:2756:35: note: Calling 'ActionsDAG::updateHeader'
May 13 22:40:20 2756 | const Block & output_header = updateHeader(input_header);
May 13 22:40:20 | ^~~~~~~~~~~~~~~~~~~~~~~~~~
May 13 22:40:20 /build/src/Interpreters/ActionsDAG.cpp:724:42: note: Assuming 'pos' is equal to 0
May 13 22:40:20 724 | for (size_t pos = inputs.size(); pos != 0; pos--)
May 13 22:40:20 | ^~~~~~~~
May 13 22:40:20 /build/src/Interpreters/ActionsDAG.cpp:724:9: note: Loop condition is false. Execution continues on line 727
May 13 22:40:20 724 | for (size_t pos = inputs.size(); pos != 0; pos--)
May 13 22:40:20 | ^
May 13 22:40:20 /build/src/Interpreters/ActionsDAG.cpp:727:30: note: Assuming the condition is true
May 13 22:40:20 727 | for (size_t pos = 0; pos < header.columns(); ++pos)
May 13 22:40:20 | ^~~~~~~~~~~~~~~~~~~~~~
May 13 22:40:20 /build/src/Interpreters/ActionsDAG.cpp:727:9: note: Loop condition is true. Entering loop body
May 13 22:40:20 727 | for (size_t pos = 0; pos < header.columns(); ++pos)
May 13 22:40:20 | ^
May 13 22:40:20 /build/src/Interpreters/ActionsDAG.cpp:731:17: note: Calling 'operator!='
May 13 22:40:20 731 | if (it != input_positions.end() && !it->second.empty())
May 13 22:40:20 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
May 13 22:40:20 /build/contrib/abseil-cpp/absl/container/internal/raw_hash_set.h:1718:16: note: Calling 'operator=='
May 13 22:40:20 1718 | return !(a == b);
May 13 22:40:20 | ^~~~~~
May 13 22:40:20 /build/contrib/abseil-cpp/absl/container/internal/raw_hash_set.h:1711:7: note: Calling 'AssertIsValidForComparison'
May 13 22:40:20 1711 | AssertIsValidForComparison(a.ctrl_, a.generation(), a.generation_ptr());
May 13 22:40:20 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
May 13 22:40:20 /build/contrib/abseil-cpp/absl/container/internal/raw_hash_set.h:1263:3: note: Taking false branch
May 13 22:40:20 1263 | if (!SwisstableDebugEnabled()) return;
May 13 22:40:20 | ^
May 13 22:40:20 /build/contrib/abseil-cpp/absl/container/internal/raw_hash_set.h:1265:7: note: Assuming the condition is false
May 13 22:40:20 1265 | ctrl == nullptr || ctrl == EmptyGroup() || IsFull(*ctrl);
May 13 22:40:20 | ^~~~~~~~~~~~~~~
May 13 22:40:20 /build/contrib/abseil-cpp/absl/container/internal/raw_hash_set.h:1265:7: note: Left side of '||' is false
May 13 22:40:20 /build/contrib/abseil-cpp/absl/container/internal/raw_hash_set.h:1265:26: note: Assuming the condition is false
May 13 22:40:20 1265 | ctrl == nullptr || ctrl == EmptyGroup() || IsFull(*ctrl);
May 13 22:40:20 | ^~~~~~~~~~~~~~~~~~~~
May 13 22:40:20 /build/contrib/abseil-cpp/absl/container/internal/raw_hash_set.h:1265:7: note: Left side of '||' is false
May 13 22:40:20 1265 | ctrl == nullptr || ctrl == EmptyGroup() || IsFull(*ctrl);
May 13 22:40:20 | ^
May 13 22:40:20 /build/contrib/abseil-cpp/absl/container/internal/raw_hash_set.h:1265:50: note: Calling 'IsFull'
May 13 22:40:20 1265 | ctrl == nullptr || ctrl == EmptyGroup() || IsFull(*ctrl);
May 13 22:40:20 | ^~~~~~~~~~~~~
May 13 22:40:20 /build/contrib/abseil-cpp/absl/container/internal/raw_hash_set.h:562:44: note: The value '0' provided to the cast expression is not in the valid range of values for 'ctrl_t'
May 13 22:40:20 562 | inline bool IsFull(ctrl_t c) { return c >= static_cast<ctrl_t>(0); }
May 13 22:40:20 | ^~~~~~~~~~~~~~~~~~~~~~
May 13 22:40:20 45528 warnings generated.
May 13 22:40:20 Suppressed 46304 warnings (45527 in non-user code, 777 NOLINT).
May 13 22:40:20 Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
May 13 22:40:20 1 warning treated as error
from abseil-cpp.
Got fixed by commit 1a31b81.
from abseil-cpp.
Related Issues (20)
- [Bug]: NegativeNaN test fails on riscv64 HOT 2
- [Bug]: Rounding absl::Time is hacky HOT 4
- [Bug]: btree_multiset memory leak with ASAN enabled HOT 6
- [Bug]: Uninitialized value in AnyInvocable.
- [Bug]: Build failure MSVC x86 with /arch:AVX2 HOT 4
- [Bug]: ABSL_ATTRIBUTE_NORETURN doesn't work in all contexts HOT 1
- [Bug]: Compilation issue on Windows 2022 with Ninja and CMake
- [Bug]: Can't link using riscv64 toolchain
- use vcpkg install absl dll lib link error HOT 1
- [Bug]: Sanitizer options may disagree between library and user leading to ODR violations
- Can't link to MSVC built abseil with clang/LLVM
- improvement : keep cmakelists clean, remove unneeded policy activations that are already active HOT 2
- [Bug]: container test_allocator should be skipped if testing is disabled HOT 3
- [Bug]: Build error during cmake quick start HOT 1
- [Bug]: 20240722.rc1 can not be built for android ndk r25b / r25c HOT 3
- [Bug]: Can't build C++20 project without .bazelrc HOT 2
- [Bug]: absl::Log Initialization in DLL Fails When Called Using ctypes on Windows
- [Bug]: Flag "-Wnon-virtual-dtor" is added to pkg-config files
- [Bug]: error while loading shared libraries: libabsl_cord_internal.so.2401.0.0: cannot open shared object file: No such file or directory
- [Bug]: asan failure in absl::Status::ToString() HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from abseil-cpp.