PR c++/71075
* pt.c (unify_template_argument_mismatch): Use %qE instead of %qD.
* g++.dg/diagnostic/pr71075.C: New test.
From-SVN: r236487
+2016-05-19 Marek Polacek <polacek@redhat.com>
+
+ PR c++/71075
+ * pt.c (unify_template_argument_mismatch): Use %qE instead of %qD.
+
2016-05-19 Jason Merrill <jason@redhat.com>
PR c++/10200
{
if (explain_p)
inform (input_location,
- " template argument %qE does not match %qD", arg, parm);
+ " template argument %qE does not match %qE", arg, parm);
return 1;
}
+2016-05-19 Marek Polacek <polacek@redhat.com>
+
+ PR c++/71075
+ * g++.dg/diagnostic/pr71075.C: New test.
+
2016-05-19 David Malcolm <dmalcolm@redhat.com>
PR c++/71184
--- /dev/null
+// PR c++/71075
+
+template<typename T, int I> struct A {};
+template<typename T> void foo(A<T,1>) {}
+int main() {
+ foo(A<int,2>()); // { dg-error "no matching" }
+// { dg-message "template argument .2. does not match .1." "" { target *-*-* } 6 }
+}