[all-commits] [llvm/llvm-project] dc567a: [clang] Fix crash when declaring invalid lambda me...
Nikolas Klauser via All-commits
all-commits at lists.llvm.org
Fri Mar 8 16:18:39 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: dc567a2ec61d07e89902f73c1bdd4106dc071f3f
https://github.com/llvm/llvm-project/commit/dc567a2ec61d07e89902f73c1bdd4106dc071f3f
Author: Nikolas Klauser <nikolasklauser at berlin.de>
Date: 2024-03-09 (Sat, 09 Mar 2024)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/AST/DeclCXX.cpp
M clang/test/SemaCXX/lambda-expressions.cpp
Log Message:
-----------
[clang] Fix crash when declaring invalid lambda member (#74110)
In valid code, there should only be a very specific set of members in a
lambda definition. If the user tries to define something inside the
lambda class, this assumption is violated and causes an assertion error.
This can be fixed by checking whether the members are valid, and if not,
ignore that the class members are potentially unexpected.
I've come across this while working on implementing lambdas in C++03.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list