2011-03-04 Jason Merrill <jason@redhat.com>
+ PR c++/47971
+ * pt.c (tsubst_copy_and_build) [PSEUDO_DTOR_EXPR]: Use tsubst for type.
+ (tsubst_copy) [default]: Just return t if !ENABLE_CHECKING.
+
PR c++/46220
* search.c (check_final_overrider): Allow pointer to same incomplete
class type with different cv-quals.
return t;
default:
- gcc_unreachable ();
+ /* We shouldn't get here, but keep going if !ENABLE_CHECKING. */
+ gcc_checking_assert (false);
+ return t;
}
}
return finish_pseudo_destructor_expr
(RECUR (TREE_OPERAND (t, 0)),
RECUR (TREE_OPERAND (t, 1)),
- RECUR (TREE_OPERAND (t, 2)));
+ tsubst (TREE_OPERAND (t, 2), args, complain, in_decl));
case TREE_LIST:
{
2011-03-04 Jason Merrill <jason@redhat.com>
+ * g++.dg/template/pseudodtor6.C: New.
+
* g++.dg/inherit/covariant19.C: New.
2011-03-04 Richard Guenther <rguenther@suse.de>