[all-commits] [llvm/llvm-project] b2a38f: [clang] fix alias ctad producing function template...

Matheus Izvekov via All-commits all-commits at lists.llvm.org
Fri May 1 10:47:06 PDT 2026


  Branch: refs/heads/users/mizvekov/ctad-no-zero-param-func-templates
  Home:   https://github.com/llvm/llvm-project
  Commit: b2a38f085c638f08d6349aef38b5a8e7f6bf5755
      https://github.com/llvm/llvm-project/commit/b2a38f085c638f08d6349aef38b5a8e7f6bf5755
  Author: Matheus Izvekov <mizvekov at gmail.com>
  Date:   2026-05-01 (Fri, 01 May 2026)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Sema/Sema.h
    M clang/lib/AST/DeclTemplate.cpp
    M clang/lib/Sema/SemaInit.cpp
    M clang/lib/Sema/SemaTemplate.cpp
    M clang/lib/Sema/SemaTemplateDeductionGuide.cpp
    M clang/test/SemaCXX/ctad.cpp
    M clang/test/SemaCXX/cxx20-ctad-type-alias.cpp
    M clang/test/SemaTemplate/deduction-guide.cpp

  Log Message:
  -----------
  [clang] fix alias ctad producing function template with no template parameters

Also fixes the same problem with error recovery for invalid template template
parameters.

This also adds asserts to the template constructors to make sure this
doesn't happen again.



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