[all-commits] [llvm/llvm-project] 256a0b: [clang] Correct source locations for instantiation...

Tom Honermann via All-commits all-commits at lists.llvm.org
Mon Sep 18 12:52:14 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 256a0b298c68b89688b80350b034daf2f7785b67
      https://github.com/llvm/llvm-project/commit/256a0b298c68b89688b80350b034daf2f7785b67
  Author: Tom Honermann <tom.honermann at intel.com>
  Date:   2023-09-18 (Mon, 18 Sep 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
    M clang/test/CXX/class/class.compare/class.compare.default/p1.cpp
    M clang/test/SemaCXX/cxx2b-consteval-propagate.cpp
    M clang/test/SemaCXX/member-init.cpp
    M clang/test/SemaTemplate/virtual-member-functions.cpp

  Log Message:
  -----------
  [clang] Correct source locations for instantiations of function templates.

This change corrects some cases where the source location for an
instantiated specialization of a function template or a member function
of a class template was assigned the location of a non-defining
declaration rather than the location of the definition the
specialization was instantiated from.

Fixes https://github.com/llvm/llvm-project/issues/26057

Reviewed By: cor3ntin

Differential Revision: https://reviews.llvm.org/D64087




More information about the All-commits mailing list