[PATCH] D119609: [Clang][Sema] Don't act on ReturnStmt when parsing the lambda declarator.

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 2 12:44:36 PST 2022


erichkeane added a comment.
Herald added a project: All.

Does this break a case like this? https://godbolt.org/z/Tc9Ko7hWY

it seems the problem is with the Expression statements, and I'm not sure why we are doing "ActOnCapScopeReturnStmt" when we aren't really in a capture scope anymore, right?  I guess we properly diagnose the use of a capture in this scope, but I don't think we should be here in the 1st place.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D119609/new/

https://reviews.llvm.org/D119609



More information about the cfe-commits mailing list