[all-commits] [llvm/llvm-project] fed9ab: [Clang] Fix missing -Warray-bounds warning on memb...

Prajwal P J via All-commits all-commits at lists.llvm.org
Mon Feb 9 04:00:00 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fed9abcb4796507622bdd9e2e36bc80260a5197b
      https://github.com/llvm/llvm-project/commit/fed9abcb4796507622bdd9e2e36bc80260a5197b
  Author: Prajwal P J <prajwaljalwadi at gmail.com>
  Date:   2026-02-09 (Mon, 09 Feb 2026)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaChecking.cpp
    M clang/test/SemaCXX/constant-expression-cxx2a.cpp

  Log Message:
  -----------
  [Clang] Fix missing -Warray-bounds warning on member function calls. (#179647)

Fixes #179128.
This patch fixes a false negative where Clang failed to detect
out-of-bounds access when calling a member function on an invalid array
index. It adds handling for CXXMemberCallExpr in CheckArrayAccess.

Signed-off-by: prajwal jalwadi<prajwaljalwadi at gmail.com>



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