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
This commit is contained in:
Giovanni Bajo 2003-07-01 17:38:02 +02:00 committed by Wolfgang Bangerth
parent 3d8daef2cd
commit 814ae570ea
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -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;