[all-commits] [llvm/llvm-project] 979eb5: [Clang][Sema] Differentiate between partial/explic...

Krystian Stasiowski via All-commits all-commits at lists.llvm.org
Thu Nov 16 01:46:59 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 979eb558dd7c203be10fa24ab2b0d7cb93c3443b
      https://github.com/llvm/llvm-project/commit/979eb558dd7c203be10fa24ab2b0d7cb93c3443b
  Author: Krystian Stasiowski <sdkrystian at gmail.com>
  Date:   2023-11-16 (Thu, 16 Nov 2023)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/SemaTemplate.cpp
    M clang/test/CXX/temp/temp.decls/temp.variadic/p5.cpp

  Log Message:
  -----------
  [Clang][Sema] Differentiate between partial/explicit specializations when diagnosing unexpanded packs (#72015)

This adds `UnexpandedParameterPackContext::UPPC_ExplicitSpecialization`
and passes it to `DiagnoseUnexpandedParameterPack` when checking
class/variable template explicit specializations.

Right now we don't check for unexpanded packs in function template
explicit specializations at all, so I will be addressing that in a
followup PR.




More information about the All-commits mailing list