llvm-project
d15559d6 - [Clang] Don't assert on substituted-but-yet-expanded packs for nested lambdas (#112896)

Commit
348 days ago
[Clang] Don't assert on substituted-but-yet-expanded packs for nested lambdas (#112896) Nested lambdas could refer to outer packs that would be expanded by a larger CXXFoldExpr, in which case that reference could happen to be a full expression containing intermediate types/expressions, e.g. SubstTemplateTypeParmPackType/FunctionParmPackExpr. They are designated as "UnexpandedPack" dependencies but don't introduce new packs anyway. This also handles a missed case for VarDecls, where the flag of ContainsUnexpandedPack was not propagated up to the surrounding lambda. Fixes #112352
Author
Parents
Loading