[clang] Function call without comparisons reported as non-constant expression after CWG2765 implementation #117409
Labels
c++20
clang:analysis
clang:diagnostics
New/improved warning or error message in Clang, but not in clang-tidy or static analyzer
We're seeing a new diagnostic trigger in an internal test. The diagnostic is implemented in...
Reduced test case below. The test case and CWG document seem to indicate that comparison is the expected use case, but I don't see any comparison operations in the code below. The values returned by the function indicated in the diagnostic are constant as well.
To reproduce:
The text was updated successfully, but these errors were encountered: