False positive "for loop analysis" warning #109402
Labels
clang:diagnostics
New/improved warning or error message in Clang, but not in clang-tidy or static analyzer
false-positive
Warning fires when it should not
This is tested with clang 18.1.0 on godbolt and occurs on trunk.
Here is the godbolt: https://godbolt.org/z/o3jhnoPso
Here is the code:
If you compile this like so you get the following warning:
The text was updated successfully, but these errors were encountered: