[all-commits] [llvm/llvm-project] cc1b66: [Clang] Fix member lookup so that we don't ignore ...

Shafik Yaghmour via All-commits all-commits at lists.llvm.org
Fri Jul 28 15:24:35 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cc1b6668c57170cd440d321037ced89d6a61a9cb
      https://github.com/llvm/llvm-project/commit/cc1b6668c57170cd440d321037ced89d6a61a9cb
  Author: Shafik Yaghmour <shafik.yaghmour at intel.com>
  Date:   2023-07-28 (Fri, 28 Jul 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Sema/Lookup.h
    M clang/lib/Sema/SemaOverload.cpp
    M clang/lib/Sema/SemaTemplate.cpp
    A clang/test/CXX/class.derived/class.member.lookup/gh22413.cpp
    A clang/test/CXX/class.derived/class.member.lookup/p11.cpp
    M clang/test/SemaCXX/arrow-operator.cpp

  Log Message:
  -----------
  [Clang] Fix member lookup so that we don't ignore ambiguous lookups in some cases

There are some cases during member lookup we are aggressively suppressing
diagnostics when we should just be suppressing access control diagnostic.

In this PR I add the ability to simply suppress access diagnostics while not
suppressing ambiguous lookup diagnostics.

Fixes: https://github.com/llvm/llvm-project/issues/22413
https://github.com/llvm/llvm-project/issues/29942
https://github.com/llvm/llvm-project/issues/35574
https://github.com/llvm/llvm-project/issues/27224

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




More information about the All-commits mailing list