[clang] [Clang] Do not skip over `RequiresExprBodyDecl` when creating lambdas (PR #147764)

Matheus Izvekov via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 10 09:53:14 PDT 2025


================
@@ -1088,6 +1088,9 @@ void CXXNameMangler::mangleNameWithAbiTags(GlobalDecl GD,
     return;
   }
 
+  while (DC->isRequiresExprBody())
+    DC = DC->getParent();
----------------
mizvekov wrote:

With a compound expression you can introduce lots of other kinds of DeclContexts here.

https://github.com/llvm/llvm-project/pull/147764


More information about the cfe-commits mailing list