-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Segfault when evaluating generic lambda with lambda default parameter #42196
Comments
I'm creating this for tracking purposes -- I'm about to submit a review for the fix. |
#41267 seems very similar. Might be possible to fix both together. |
We still segfault on this (the same reproducer I originally filed): $ cat <<EOF | clang++ -xc++ - -std=c++14 -fsyntax-only I'm returning this bug report to Clang Unassigned since I don't have time to work on this with the libc++ workload. |
Looks like this no longer crashes on clang trunk: https://godbolt.org/z/cezdE3jd5 |
@llvm/issue-subscribers-clang-frontend |
Indeed, looks like this was fixed in Clang 16: https://godbolt.org/z/EoYxT75c6 (clang 15 segfaults and clang 16 doesn't). |
Extended Description
The following code causes Clang to assert (when built with assertions enabled, obviously):
Produces this output:
The text was updated successfully, but these errors were encountered: