* semantics.c (potential_constant_expression_1): Handle destructor
call.
From-SVN: r174819
+2011-06-08 Jason Merrill <jason@redhat.com>
+
+ * semantics.c (potential_constant_expression_1): Handle destructor
+ call.
+
2011-06-08 Jakub Jelinek <jakub@redhat.com>
* cp-tree.h (struct tinst_level): Add chain_next GTY
want_rval = true;
goto binary;
+ case BIT_NOT_EXPR:
+ /* A destructor. */
+ if (TYPE_P (TREE_OPERAND (t, 0)))
+ return true;
+ /* else fall through. */
+
case REALPART_EXPR:
case IMAGPART_EXPR:
case CONJ_EXPR:
case FLOAT_EXPR:
case NEGATE_EXPR:
case ABS_EXPR:
- case BIT_NOT_EXPR:
case TRUTH_NOT_EXPR:
case FIXED_CONVERT_EXPR:
case UNARY_PLUS_EXPR: