re PR c++/50828 (class template parameter not printed for member function template in candidate list)

2012-09-24  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/50828
	* error.c (dump_function_decl): Strip TFF_TEMPLATE_NAME from flags
	at the outset.

From-SVN: r191673
This commit is contained in:
Paolo Carlini 2012-09-24 16:56:41 +00:00 committed by Paolo Carlini
parent 3ad50c8e15
commit ee38ecd406
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2012-09-24 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/50828
* error.c (dump_function_decl): Strip TFF_TEMPLATE_NAME from flags
at the outset.
2012-09-24 Jason Merrill <jason@redhat.com>
* decl.c (get_atexit_node): Remove dead code.

View File

@ -1348,7 +1348,7 @@ dump_function_decl (tree t, int flags)
return;
}
flags &= ~TFF_UNQUALIFIED_NAME;
flags &= ~(TFF_UNQUALIFIED_NAME | TFF_TEMPLATE_NAME);
if (TREE_CODE (t) == TEMPLATE_DECL)
t = DECL_TEMPLATE_RESULT (t);