C++ PATCH for c++/66501 (wrong code with array move assignment)

Jason Merrill jason@redhat.com
Tue Jun 23 14:07:00 GMT 2015


build_vec_init was assuming that if a class has a trivial copy 
assignment, then an array assignment is trivial.  But overload 
resolution might not choose the copy assignment operator.  So this patch 
changes build_vec_init to check for any non-trivial assignment operator.

Tested x86_64-pc-linux-gnu, applying to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 66501.patch
Type: text/x-patch
Size: 3795 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150623/9f3dc7d3/attachment.bin>


More information about the Gcc-patches mailing list