From ee76a9624ad407276f8aa0c6796a54096871eba2 Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Fri, 29 Mar 2024 23:28:54 +0800 Subject: [PATCH] [clang][Sema] Fix a CTAD regression after 42239d2e9 (#86914) The most recent declaration of a template as a friend can introduce a different template parameter depth compared to what we anticipate from a CTAD guide. Fixes https://github.com/llvm/llvm-project/issues/86769 --- clang/docs/ReleaseNotes.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst index 20f9aa3ac6f037..b69e7ae4451f1c 100644 --- a/clang/docs/ReleaseNotes.rst +++ b/clang/docs/ReleaseNotes.rst @@ -1161,6 +1161,10 @@ Bug Fixes to C++ Support - Fix a crash when an unresolved overload set is encountered on the RHS of a ``.*`` operator. (`#53815 `_) +- Fixed a regression in CTAD that a friend declaration that befriends itself may cause + incorrect constraint substitution. + (`#86769 `_) + Bug Fixes to AST Handling ^^^^^^^^^^^^^^^^^^^^^^^^^ - Clang now properly preserves ``FoundDecls`` within a ``ConceptReference``. (#GH82628)