[all-commits] [llvm/llvm-project] d15559: [Clang] Don't assert on substituted-but-yet-expand...

Younan Zhang via All-commits all-commits at lists.llvm.org
Tue Oct 22 01:52:05 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d15559d69d519cae203508b1ffe3adbdd29ab387
      https://github.com/llvm/llvm-project/commit/d15559d69d519cae203508b1ffe3adbdd29ab387
  Author: Younan Zhang <zyn7109 at gmail.com>
  Date:   2024-10-22 (Tue, 22 Oct 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaTemplateVariadic.cpp
    M clang/lib/Sema/TreeTransform.h
    M clang/test/SemaCXX/lambda-pack-expansion.cpp

  Log Message:
  -----------
  [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



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