[clang] [Clang] Fix handling of brace ellison when building deduction guides (PR #94889)

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 11 06:34:15 PDT 2024


================
@@ -335,3 +335,73 @@ namespace TTP {
 // CHECK-NEXT:      `-TemplateArgument type 'T':'type-parameter-0-0'{{$}}
 // CHECK-NEXT:        `-TemplateTypeParmType {{.+}} 'T' dependent depth 0 index 0{{$}}
 // CHECK-NEXT:          `-TemplateTypeParm {{.+}} 'T'{{$}}
+
+namespace GH64625 {
+
+template <class T> struct X {
+  T t[2];
+};
+
+X x = {{1, 2}}, y = {1, 2};
----------------
hokein wrote:

nit: `y = {1, 2}` is already working today. Let's just add the problematic test cases.

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


More information about the cfe-commits mailing list