From 62cec09952d44a5c6c7564d7594d8f8ca681386b 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 9c727722705442d..59c76b45c195de2 100644 --- a/clang/docs/ReleaseNotes.rst +++ b/clang/docs/ReleaseNotes.rst @@ -400,6 +400,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 ^^^^^^^^^^^^^^^^^^^^^^^^^