-
Notifications
You must be signed in to change notification settings - Fork 12.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[clang] Function call without comparisons reported as non-constant expression after CWG2765 implementation #117409
Comments
@llvm/issue-subscribers-c-20 Author: Matthew Voss (ormris)
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:
|
CC @zygoloid |
The problem is that the conversion function to Was this reduced from fmtlib by any chance? This looks like the exact same issue as in #113517. If so, the bug is fixed in fmtlib already. |
The relevant diagnostic in the output is just
isn't it? Can we improve that? |
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: