[all-commits] [llvm/llvm-project] 09e010: [Clang] use parameter location for abbreviated fun...

Oleksandr T. via All-commits all-commits at lists.llvm.org
Thu Mar 6 05:13:15 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 09e010001773d7d7efc0cafe78d3c8899d8bc45d
      https://github.com/llvm/llvm-project/commit/09e010001773d7d7efc0cafe78d3c8899d8bc45d
  Author: Oleksandr T. <oleksandr.tarasiuk at outlook.com>
  Date:   2025-03-06 (Thu, 06 Mar 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaTemplate.cpp
    M clang/test/CXX/temp/temp.pre/p6.cpp

  Log Message:
  -----------
  [Clang] use parameter location for abbreviated function templates (#129139)

Fixes #46386

--- 

When an abbreviated function template appears in an `extern "C"` block
and all template parameters are invented,
`TemplateParams->getTemplateLoc()` becomes invalid, leading to an
incorrect error location. These changes ensure that the error points to
the parameter's location when the template location is invalid.



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