-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
[analyzer] Clang-19 crash: Assertion `isa<To>(Val) && "cast<Ty>() argument of incompatible type!"' failed. #89185
Labels
Comments
EugeneZelenko
added
clang:static analyzer
crash
Prefer [crash-on-valid] or [crash-on-invalid]
and removed
new issue
labels
Apr 18, 2024
@llvm/issue-subscribers-clang-static-analyzer Author: Anonymous (iamanonymouscs)
Clang-19 with --analyze -c crashes on the test case.
Compiler explorer(assertion trunck): https://godbolt.org/z/6158W6bqo
|
This was referenced Apr 18, 2024
steakhal
added a commit
that referenced
this issue
Apr 19, 2024
Interestingly, this case crashed from the very beginning of the project, at least starting by clang-3. As a "fix" I just do the same thing as we do for concrete integers. It might not be the best we could do, but arguably, it's still better than crashing. Fixes #89185
aniplcc
pushed a commit
to aniplcc/llvm-project
that referenced
this issue
Apr 21, 2024
Interestingly, this case crashed from the very beginning of the project, at least starting by clang-3. As a "fix" I just do the same thing as we do for concrete integers. It might not be the best we could do, but arguably, it's still better than crashing. Fixes llvm#89185
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Clang-19 with --analyze -c crashes on the test case.
Compiler explorer(assertion trunck): https://godbolt.org/z/6158W6bqo
The text was updated successfully, but these errors were encountered: