re PR c++/66501 (Default move assignment does not move array members)
authorJason Merrill <jason@redhat.com>
Tue, 23 Jun 2015 14:08:25 +0000 (10:08 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 23 Jun 2015 14:08:25 +0000 (10:08 -0400)
commit115ef7c52e7cae6101df2f062b4650c82e50072d
tree44310bb83003aec8c18da2121e39487979170bd2
parentd4c9e7f92225d829ad1d18c950066cf99fc58cc7
re PR c++/66501 (Default move assignment does not move array members)

PR c++/66501
* class.c (type_has_nontrivial_assignment): New.
* init.c (build_vec_init): Use it.
* cp-tree.h: Declare it.
* method.c (trivial_fn_p): Templates aren't trivial.

From-SVN: r224843
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/init.c
gcc/cp/method.c
gcc/testsuite/g++.dg/cpp0x/rv-array1.C [new file with mode: 0644]