+2017-05-11 Ville Voutilainen <ville.voutilainen@gmail.com>
+
+ PR c++/80682
+ * method.c (is_trivially_xible): Reject void types.
+
2017-05-10 Nathan Sidwell <nathan@acm.org>
* class.c (handle_using_decl): Always use OVL_CURRENT.
bool
is_trivially_xible (enum tree_code code, tree to, tree from)
{
+ if (VOID_TYPE_P (to))
+ return false;
tree expr;
if (code == MODIFY_EXPR)
expr = assignable_expr (to, from);
SA(__is_trivially_assignable(C,C&));
SA(!__is_trivially_assignable(C,C));
SA(!__is_trivially_assignable(C,C&&));
+SA(!__is_trivially_assignable(void,int));
+SA(!__is_trivially_assignable(const void,int));
+SA(!__is_trivially_assignable(volatile void,int));
+SA(!__is_trivially_assignable(const volatile void,int));
SA(__is_trivially_constructible(int,int));
SA(__is_trivially_constructible(int,double));
SA(!__is_trivially_constructible(int,B));
+SA(!__is_trivially_constructible(void,int));
+SA(!__is_trivially_constructible(const void,int));
+SA(!__is_trivially_constructible(volatile void,int));
+SA(!__is_trivially_constructible(const volatile void,int));
SA(!__is_trivially_constructible(D));