[all-commits] [llvm/llvm-project] e241c8: Fix pack deduction to only deduce the arity of pac...

Richard Smith via All-commits all-commits at lists.llvm.org
Fri Jan 17 00:54:51 PST 2020


  Branch: refs/heads/release/10.x
  Home:   https://github.com/llvm/llvm-project
  Commit: e241c8fe6d2e6d83e9fb32bd34da8ffcdc0dd83d
      https://github.com/llvm/llvm-project/commit/e241c8fe6d2e6d83e9fb32bd34da8ffcdc0dd83d
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2020-01-17 (Fri, 17 Jan 2020)

  Changed paths:
    M clang/lib/Sema/SemaTemplateDeduction.cpp
    M clang/test/SemaTemplate/deduction.cpp

  Log Message:
  -----------
  Fix pack deduction to only deduce the arity of packs that are actually
expanded by the deduced pack.

We recently started also deducing the arity of separately-expanded packs
that are merely mentioned within the pack in question, which is
incorrect.

(cherry picked from commit e8f198dd9e9dabed8d50276465906e7c8827cada)




More information about the All-commits mailing list