<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Thu, Dec 22, 2016 at 5:41 PM Richard Smith via cfe-commits <<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a>> wrote:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
==============================================================================<br class="gmail_msg">
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)<br class="gmail_msg">
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Thu Dec 22 19:30:39 2016<br class="gmail_msg">
@@ -3343,6 +3343,10 @@ def note_ovl_candidate_incomplete_deduct<br class="gmail_msg">
 def note_ovl_candidate_inconsistent_deduction : Note<<br class="gmail_msg">
     "candidate template ignored: deduced conflicting %select{types|values|"<br class="gmail_msg">
     "templates}0 for parameter %1%diff{ ($ vs. $)|}2,3">;<br class="gmail_msg">
+def note_ovl_candidate_inconsistent_deduction_types : Note<<br class="gmail_msg">
+    "candidate template ignored: deduced values %diff{"<br class="gmail_msg">
+    "of conflicting types for parameter %0 (%1 of type $ vs. %3 of type $)|"<br class="gmail_msg">
+    "%1 and %3 of conflicting types for parameter %0|}2,4">;<br class="gmail_msg"></blockquote><div><br></div><div>So, this new diagnostic isn't actually covered by any test. Not just is the wording not covered, literally it isn't emitted. There is a bug in the format that we didn't defend against -- having too many '|'s in the %diff alternatives. I added an assert to try to catch this in r290417 and it didn't trigger here because we never process this format.</div><div><br></div><div>Could you add a test covering this?</div><div><br></div><div>I went ahead and fixed the %diff format syntax by inspection in r290417.</div></div></div>