call.c (build_over_call): Check unsafe_copy_elision_p even for trivial constructors.
authorJason Merrill <jason@redhat.com>
Fri, 22 Jul 2016 03:45:30 +0000 (23:45 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 22 Jul 2016 03:45:30 +0000 (23:45 -0400)
commitd5ec842cde69dedaf9a447d7d7a00735c9b4da40
tree23d12829ccddf066e337f8c344f90a7bd4d4de0c
parent4114e6b1fe8bb10a42ce56263ad42cba98138254
call.c (build_over_call): Check unsafe_copy_elision_p even for trivial constructors.

* call.c (build_over_call): Check unsafe_copy_elision_p even for
trivial constructors.
* method.c (do_build_copy_constructor): Don't copy tail padding
even in a trivial constructor.

From-SVN: r238620
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/method.c
gcc/testsuite/g++.dg/torture/tail-padding1.C [new file with mode: 0644]