Commit 6735e374 by Paolo Carlini Committed by Paolo Carlini

re PR c++/33843 (Broken diagnostic: 'bit_not_expr' not supported by pp_cxx_unqualified_id)

2007-10-25  Paolo Carlini  <pcarlini@suse.de>

	PR c++/33843
	* cxx-pretty-print.c (pp_cxx_unqualified_id): Deal with BIT_NOT_EXPR.

2007-10-25  Paolo Carlini  <pcarlini@suse.de>

	PR c++/33843
	* g++.dg/template/error32.C: New.

From-SVN: r129637
parent 1fa6df85
2007-10-25 Paolo Carlini <pcarlini@suse.de>
PR c++/33843
* cxx-pretty-print.c (pp_cxx_unqualified_id): Deal with BIT_NOT_EXPR.
2007-10-23 Jason Merrill <jason@redhat.com>
PR c++/25950 (DR 391)
......
......@@ -195,6 +195,11 @@ pp_cxx_unqualified_id (cxx_pretty_printer *pp, tree t)
pp_cxx_unqualified_id (pp, TYPE_NAME (t));
break;
case BIT_NOT_EXPR:
pp_cxx_complement (pp);
pp_cxx_unqualified_id (pp, TREE_OPERAND (t, 0));
break;
case TEMPLATE_TYPE_PARM:
case TEMPLATE_TEMPLATE_PARM:
if (TYPE_IDENTIFIER (t))
......
2007-10-25 Paolo Carlini <pcarlini@suse.de>
PR c++/33843
* g++.dg/template/error32.C: New.
2007-10-25 Martin Michlmayr <tbm@cyrius.com>
Ira Rosen <irar@il.ibm.com>
// PR c++/33843
struct A {};
void foo(A* p())
{
p->A::~A(); // { dg-error "A::~A" }
}
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