[clang] [Clang] Fix handling of brace ellison when building deduction guides (PR #94889)
Younan Zhang via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 11 07:19:57 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 {
----------------
zyn0217 wrote:
Oops, `InitListChecker` seemingly doesn't handle such a case very well. It would produce only one element, namely `T (&&)[2]` atm. Will look into that, and thanks for spotting it!
https://github.com/llvm/llvm-project/pull/94889
More information about the cfe-commits
mailing list