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

Matheus Izvekov via All-commits all-commits at lists.llvm.org
Fri May 1 11:35:41 PDT 2026


  Branch: refs/heads/users/mizvekov/ctad-no-zero-param-func-templates
  Home:   https://github.com/llvm/llvm-project
  Commit: f351954ef4b8e3d3174bdefcee50800c261f3be2
      https://github.com/llvm/llvm-project/commit/f351954ef4b8e3d3174bdefcee50800c261f3be2
  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
    M lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.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