Commit c7f06e13 by Paolo Carlini Committed by Paolo Carlini

re PR c++/38656 (Broken diagnostic: 'template_id_expr' not supported by pp_c_expression)

cp/
2009-11-27  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/38656
	* cxx-pretty-print.c (pp_cxx_expression): Handle TEMPLATE_ID_EXPR.

testsuite/
2009-11-27  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/38656
	* g++.dg/cpp0x/error2.C: New.

From-SVN: r154712
parent b0d49a6e
2009-11-27 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/38656
* cxx-pretty-print.c (pp_cxx_expression): Handle TEMPLATE_ID_EXPR.
2009-11-27 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/35112
* pt.c (print_overloaded_functions): New.
(print_candidates): Call the latter.
......
......@@ -1092,6 +1092,10 @@ pp_cxx_expression (cxx_pretty_printer *pp, tree t)
pp_cxx_ws_string (pp, "...");
break;
case TEMPLATE_ID_EXPR:
pp_cxx_template_id (pp, t);
break;
case NONTYPE_ARGUMENT_PACK:
{
tree args = ARGUMENT_PACK_ARGS (t);
......
2009-11-27 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/38656
* g++.dg/cpp0x/error2.C: New.
2009-11-27 Michael Matz <matz@suse.de>
PR rtl-optimization/42084
......
// PR c++/38656
// { dg-options "-std=c++0x" }
template<int> int foo();
template<typename F> void bar(F f)
{
f((foo<0>()=0)...); // { dg-error "pattern '\\(foo\\<0\\>\\)\\(\\)=0'" }
}
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