-
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
ICE in clang::Sema::tryCaptureVariable #91633
Comments
@llvm/issue-subscribers-clang-frontend Author: None (Woebbeking)
Hi,
clang-18 crashes for me in the attached testcase testcase.zip
Maybe this is a duplicate of #90669 clang-17 works fine. Cheers, |
We have a number of these crashes that are similar but not exactly identical. |
Confirmed on 19.0: https://godbolt.org/z/17Yvd4cbe struct __normal_iterator {};
template <typename _Iterator>
void operator==(_Iterator __lhs, _Iterator)
requires requires { __lhs; };
__normal_iterator finder();
template <typename >
void findDetail() {
auto makeResult = [&](auto foo) -> void {
finder() != foo;
};
makeResult(__normal_iterator{});
}
void find() {
findDetail<void>();
} Clang 19.0 crash:
|
@llvm/issue-subscribers-c-20 Author: None (Woebbeking)
Hi,
clang-18 crashes for me in the attached testcase testcase.zip
Maybe this is a duplicate of #90669 clang-17 works fine. Cheers, |
…93206) This patch picks up llvm#78598 with the hope that we can address such crashes in `tryCaptureVariable()` for unevaluated lambdas. In addition to `tryCaptureVariable()`, this also contains several other fixes on e.g. lambda parsing/dependencies. Fixes llvm#63845 Fixes llvm#67260 Fixes llvm#69307 Fixes llvm#88081 Fixes llvm#89496 Fixes llvm#90669 Fixes llvm#91633
Hi,
clang-18 crashes for me in the attached testcase testcase.zip
Maybe this is a duplicate of #90669 clang-17 works fine.
Cheers,
André
The text was updated successfully, but these errors were encountered: