You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
structs {
int x;
friendautooperator==(s a, s b) -> bool = default;
};
automain() -> int {
auto a = s{.x = 0};
auto b = s{.x = 1};
return a != b;
}
It seems to be the combination of generating operator== and operator!=as friends (members are okay), using the one of the generated operators, and also using designated initialisers. Remove any of the three from the piece, and the crash isn't triggered.
Logs
Please attach the clangd stderr log if you can. (Usually available from the editor)
If possible, run with --log=verbose - note that the logs will include the contents of open files!
If this is a crash, try to put llvm-symbolizer on your PATH per the troubleshooting instructions.
System information
Output of clangd --version: clangd version 11.0.0-++20200510052610+bcc5ed7b24e-1~exp1~20200510153213.37
Editor/LSP plugin: VS Code
Operating system: WSL Ubuntu20.04
The text was updated successfully, but these errors were encountered:
…C++20.
Summary:
Make RAV not visit the default function decl by default.
Also update some stale comments on FunctionDecl::isDefault.
Fixesclangd/clangd#383
Reviewers: sammccall, rsmith
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D80288
Given a compile_commands.json with
This program crashes clangd-11.
It seems to be the combination of generating
operator==
andoperator!=
as friends (members are okay), using the one of the generated operators, and also using designated initialisers. Remove any of the three from the piece, and the crash isn't triggered.Logs
Please attach the clangd stderr log if you can. (Usually available from the editor)
If possible, run with
--log=verbose
- note that the logs will include the contents of open files!If this is a crash, try to put
llvm-symbolizer
on your PATH per the troubleshooting instructions.clangd-output.txt
System information
Output of
clangd --version
: clangd version 11.0.0-++20200510052610+bcc5ed7b24e-1~exp1~20200510153213.37Editor/LSP plugin: VS Code
Operating system: WSL Ubuntu20.04
The text was updated successfully, but these errors were encountered: