[llvm-branch-commits] [clang] [clang] fix nondeduced mismatch with nullptr template arguments (PR #124498)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Jan 26 20:48:20 PST 2025


================
@@ -2559,6 +2558,8 @@ DeduceTemplateArguments(Sema &S, TemplateParameterList *TemplateParams,
     return TemplateDeductionResult::NonDeducedMismatch;
 
   case TemplateArgument::StructuralValue:
+    // FIXME: structural equality will also compare types,
+    // but they should match iff they have the same value.
----------------
cor3ntin wrote:

```suggestion
    // FIXME: Arguments of structural types should match when their values are the same,
    // even when their types are different.
```

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


More information about the llvm-branch-commits mailing list