This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/66501] [4.9/5/6 Regression] Default move assignment does not move array members


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66501

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue Jun 23 14:08:25 2015
New Revision: 224843

URL: https://gcc.gnu.org/viewcvs?rev=224843&root=gcc&view=rev
Log:
        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.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/rv-array1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/class.c
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/init.c
    trunk/gcc/cp/method.c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]