-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
False negatives clang-analyzer-core.StackAddressEscape when storing pointers/references in container #123459
Comments
Sorry, what's the issue here? You are taking a reference/pointer to a local variable and the
|
Yes, but it should be possible to find the issues in static analysis, |
@llvm/issue-subscribers-clang-static-analyzer Author: None (chrchr-github)
~~~c++
#include <string>
#include <vector>
struct S { std::string* s; }; struct T { std::string& s; }; int main() {
|
https://godbolt.org/z/sMb8Ebv9j
The text was updated successfully, but these errors were encountered: