-
Notifications
You must be signed in to change notification settings - Fork 13.4k
[clang][analyzer] ExprEngineCXX
Segfault while trying to analyze valid code.
#78810
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
Comments
@llvm/issue-subscribers-clang-static-analyzer Author: nyako (nyyakko)
Environment: `WSL2 with Ubuntu 23.04 @ Windows 10 Pro 21H2`
Clang++ Version:
Clang-Tidy Version:
Snippet to reproduce the crash: struct S
{
constexpr auto operator==(this auto, S)
{
return true;
}
};
int main()
{
return S {} == S {};
} Backtrace:
|
I can't reproduce this crash.Could you give me more details about this? @nyyakko |
Reproduced in the latest version.
llvm-project/clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp Lines 357 to 358 in 8171f6d
Call to Otherwise, the dereference will return an invalid value and continue. The call to |
ExprEngineCXX
Segfault while trying to analyze valid code.
…edParameterIndex() (#83585) Fixes #78810 Thanks for Snape3058 's comment --------- Co-authored-by: miaozhiyuan <[email protected]>
Environment:
WSL2 with Ubuntu 23.04 @ Windows 10 Pro 21H2
Clang++ Version:
Clang-Tidy Version:
Snippet to reproduce the crash:
Backtrace:
The text was updated successfully, but these errors were encountered: