llvm-project
dc567a2e - [clang] Fix crash when declaring invalid lambda member (#74110)

Commit
1 year ago
[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.
Author
Parents
Loading