[all-commits] [llvm/llvm-project] 8498ba: [clang] Add the check of membership for the issue ...

limingliv via All-commits all-commits at lists.llvm.org
Wed Feb 22 00:45:45 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8498ba6c2860c838183f9951b63df26ab5f02265
      https://github.com/llvm/llvm-project/commit/8498ba6c2860c838183f9951b63df26ab5f02265
  Author: Liming Liu <gangliugangliu.ml at outlook.com>
  Date:   2023-02-22 (Wed, 22 Feb 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/AST/DeclCXX.h
    M clang/lib/AST/CXXInheritance.cpp
    M clang/lib/Sema/SemaExpr.cpp
    A clang/test/CodeGenCXX/decl-ref-inheritance.cpp
    M clang/test/SemaCXX/decltype.cpp

  Log Message:
  -----------
  [clang] Add the check of membership for the issue #58674 and improve the lookup process

This patch includes the commit 01adf96ebc86 and a fix of unhandled declaration
references.

When looking up base classes, Clang first checks whether a base class is a
template and takes the specialized template based on it. However, the base class
might be instantiated, and the above behavior can lose information.

This patch fixes the problem by first checking whether a base class is a record
declaration, so the instantiated one will be taken.

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




More information about the All-commits mailing list