You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The clang-analyzer-core.UndefinedBinaryOperatorResult incorrectly assumes an std::array's size() function can return 0 when used as the condition in a for loop with an index even though the array's size is a compile-time constant. This causes the analysis to skip the loop's body and leads to a false-positive uninitialized variable. I have a simplified reproduction case in Compiler Explorer here: https://godbolt.org/z/jGb3dv1qP
The text was updated successfully, but these errors were encountered:
The `clang-analyzer-core.UndefinedBinaryOperatorResult` incorrectly assumes an std::array's size() function can return 0 when used as the condition in a for loop with an index even though the array's size is a compile-time constant. This causes the analysis to skip the loop's body and leads to a false-positive uninitialized variable. I have a simplified reproduction case in Compiler Explorer here: https://godbolt.org/z/jGb3dv1qP
The
clang-analyzer-core.UndefinedBinaryOperatorResult
incorrectly assumes an std::array's size() function can return 0 when used as the condition in a for loop with an index even though the array's size is a compile-time constant. This causes the analysis to skip the loop's body and leads to a false-positive uninitialized variable. I have a simplified reproduction case in Compiler Explorer here: https://godbolt.org/z/jGb3dv1qPThe text was updated successfully, but these errors were encountered: