[clang] Bugfix for chosing the correct deduction guide (PR #66487)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 3 08:35:38 PDT 2023


================
@@ -390,6 +390,10 @@ Bug Fixes to C++ Support
   we now produce a diagnostic. Fixes:
   (`#65522 <https://github.com/llvm/llvm-project/issues/65522>`_)
 
+- Fixed a bug where clang couldn't choose the correct deduction guide from
+  two implicitly generated deduction guides. One of them generated from a
+  non-templated constructor and the other from a templated constructor.
+
----------------
erichkeane wrote:

Perhaps reword to:

"Fixed a bug where clang incorrectly considered implicitly generated deduction guides from a non-templated constructor and a templated constructor as ambiguous, rather than prefer the non-templated constructor as specified in [standard.group]p3."

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


More information about the cfe-commits mailing list