From 550f4fcce0cd922db1a0b585ced1dbd13044dc04 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 bb01adc7b9e8aee..f26017d4a4c9c23 100644 --- a/clang/docs/ReleaseNotes.rst +++ b/clang/docs/ReleaseNotes.rst @@ -382,6 +382,9 @@ Bug Fixes to C++ Support - Fix a crash when using ``source_location`` in the trailing return type of a lambda expression. (#GH67134) - A follow-up fix was added for (#GH61460), as the previous fix was not entirely correct. (#GH86361) +- 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 ^^^^^^^^^^^^^^^^^^^^^^^^^