From 99b6dc1a61c5a8a6bce0012b0b8ab745fd7101fe Mon Sep 17 00:00:00 2001 From: Tianlan Zhou Date: Sun, 4 Feb 2024 02:35:40 +0800 Subject: [PATCH] Backport '[clang] static operators should evaluate object argument (reland)' to release/18.x (#80109) Cherry picked from commit ee01a2c3996f9647f3158f5acdb921a6ede94dc1. Closes #80041, backport #80108. Co-authored-by: Shafik Yaghmour Co-authored-by: cor3ntin Co-authored-by: Aaron Ballman --- clang/docs/ReleaseNotes.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst index 366c8f13db2bf33..7e54a6ffe3e7a25 100644 --- a/clang/docs/ReleaseNotes.rst +++ b/clang/docs/ReleaseNotes.rst @@ -1125,6 +1125,9 @@ Bug Fixes to C++ Support - Fix handling of ``_`` as the name of a lambda's init capture variable. (#GH107024) +- Fix incorrect code generation caused by the object argument of ``static operator()`` and ``static operator[]`` calls not being evaluated. + Fixes (`#67976 `_) + Bug Fixes to AST Handling ^^^^^^^^^^^^^^^^^^^^^^^^^ - Clang now properly preserves ``FoundDecls`` within a ``ConceptReference``. (#GH82628)