From 403b2b4cce12caa3c894a9ca61b17a2ca1dcae04 Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Wed, 7 Feb 2024 08:11:28 +0800 Subject: [PATCH] PR for llvm/llvm-project#79568 (#80120) Backporting https://github.com/llvm/llvm-project/pull/79568 to clang 18. --- clang/docs/ReleaseNotes.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst index f26017d4a4c9c2..573555b6007447 100644 --- a/clang/docs/ReleaseNotes.rst +++ b/clang/docs/ReleaseNotes.rst @@ -382,6 +382,11 @@ 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) + +- Fixed a bug where variables referenced by requires-clauses inside + nested generic lambdas were not properly injected into the constraint scope. + (`#73418 `_) + - Fix incorrect code generation caused by the object argument of ``static operator()`` and ``static operator[]`` calls not being evaluated. Fixes (`#67976 `_)