[clang] [clang-tools-extra] [Clang][Sema] Fix explicit specializations of member function templates with a deduced return type (PR #86817)

via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 28 11:05:56 PDT 2024


================
@@ -345,6 +345,10 @@ Bug Fixes in This Version
 - Fixes an assertion failure on invalid code when trying to define member
   functions in lambdas.
 
+- Clang now allows for member function templates of class templates declared with a deduced return type
+  to be explicitly specialized for a given implicit instantiation of the class template.
----------------
Sirraide wrote:

This is minor, but ‘Clang now allows’ suggests that we didn’t allow that before on purpose, even though it was actually a bug; I’d phrase this in a way that makes it clear that this was actually a bug that has been fixed now.

Also, there should be a C++-specific section further down; I would put this there instead.

https://github.com/llvm/llvm-project/pull/86817


More information about the cfe-commits mailing list