[clang] [clang] Fix CTAD not work for function-type and array-type arguments. (PR #78159)

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 15 12:21:38 PST 2024


================
@@ -645,4 +645,27 @@ namespace undefined_warnings {
     auto test2 = TemplDObj(.0f);
   }
 }
+
+namespace GH51710 {
+template<typename T>
+struct A {
+  A(T f()) {}
+  A(int f(), T) {}
+
+  A(T array[10]) {}
+  A(int array[10], T) {}
----------------
hokein wrote:

Done.

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


More information about the cfe-commits mailing list