Commit 814ae570 by Giovanni Bajo Committed by Wolfgang Bangerth

re PR c++/8046 (ICE on illegal code involving destructor being treated as bit-not expression)

2003-07-01  Giovanni Bajo  <giovannibajo@libero.it>

        PR c++/8046
        * error.c (dump_decl): Handle BIT_NOT_EXPR as
        pseudo destructor calls.

From-SVN: r68775
parent 3d8daef2
2003-07-01 Giovanni Bajo <giovannibajo@libero.it>
PR c++/8046
* error.c (dump_decl): Handle BIT_NOT_EXPR as
pseudo destructor calls.
2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
* cp-tree.h (define_label): Replace filename and lineno
......
......@@ -877,6 +877,13 @@ dump_decl (tree t, int flags)
dump_type (t, flags);
break;
case BIT_NOT_EXPR:
/* This is a pseudo distructor call which has not been folded into
a PSEUDO_DTOR_EXPR yet. */
output_add_character (scratch_buffer, '~');
dump_type (TREE_OPERAND (t, 0), flags);
break;
case TYPE_EXPR:
abort ();
break;
......
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