[all-commits] [llvm/llvm-project] b8a1b6: [clang] fix missing initialization of original num...

Matheus Izvekov via All-commits all-commits at lists.llvm.org
Mon Aug 15 08:40:17 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b8a1b698afb2fc84819c7596090aabf4d826b436
      https://github.com/llvm/llvm-project/commit/b8a1b698afb2fc84819c7596090aabf4d826b436
  Author: Matheus Izvekov <mizvekov at gmail.com>
  Date:   2022-08-15 (Mon, 15 Aug 2022)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/TreeTransform.h
    M clang/test/CXX/temp/temp.decls/temp.variadic/p5.cpp

  Log Message:
  -----------
  [clang] fix missing initialization of original number of expansions

When expanding undeclared function parameters, we should initialize
the original number of expansions, if known, before trying to expand
them, otherwise a length mismatch with an outer pack might not be
diagnosed.

Fixes PR56094.

Signed-off-by: Matheus Izvekov <mizvekov at gmail.com>

Differential Revision: https://reviews.llvm.org/D131802




More information about the All-commits mailing list