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

via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 15 06:26:25 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) {}
----------------
cor3ntin wrote:

Can you add tests for incomplete array (in another struct ie

```cpp
template<typename T>
struct B {
   B(T array[]) {}
   B(int array[], T) {}
};


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


More information about the cfe-commits mailing list