Commit 2a5569fa by Marek Polacek Committed by Marek Polacek

re PR c++/71075 (Broken diagnostic: 'integer_cst' not supported by 'dump_decl')

	PR c++/71075
	* pt.c (unify_template_argument_mismatch): Use %qE instead of %qD.

	* g++.dg/diagnostic/pr71075.C: New test.

From-SVN: r236487
parent a7dd5069
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
......
......@@ -6165,7 +6165,7 @@ unify_template_argument_mismatch (bool explain_p, tree parm, tree arg)
{
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
......
// 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 }
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment