[all-commits] [llvm/llvm-project] 58d4f7: [clang] Don't lose track of explicit specializatio...

Matheus Izvekov via All-commits all-commits at lists.llvm.org
Sat Oct 5 13:34:22 PDT 2024


  Branch: refs/heads/users/mizvekov/clang-fix-explicit-specialization-tracking
  Home:   https://github.com/llvm/llvm-project
  Commit: 58d4f7e9dd8a9861b8cb73d13b07e81d3c09ae7d
      https://github.com/llvm/llvm-project/commit/58d4f7e9dd8a9861b8cb73d13b07e81d3c09ae7d
  Author: Matheus Izvekov <mizvekov at gmail.com>
  Date:   2024-10-05 (Sat, 05 Oct 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaTemplateInstantiate.cpp
    M clang/test/SemaTemplate/ms-function-specialization-class-scope.cpp

  Log Message:
  -----------
  [clang] Don't lose track of explicit specializations of member function templates

When instantiating a class template, we would lose track of function
template explicit specializations, marking them with the wrong
specialization kind.

This would lead to improperly using the explcit specialization arguments
to instantiate the function body.

This also better matches MSVC on the behaviour of explicitly vs
implicitly instantiating these.

Fixes #111266



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