PR c++/86094 - wrong code with defaulted move ctor.
authorJason Merrill <jason@redhat.com>
Wed, 13 Jun 2018 19:39:36 +0000 (15:39 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 13 Jun 2018 19:39:36 +0000 (15:39 -0400)
commit34a7a2308da1effd628f9f7959e1f5cabec918be
tree7e4dadbab05c5400b398730714c7858cd3f9950a
parent010b9a3ec010d3cf5c76ba98e9a6438ad5bf7a76
PR c++/86094 - wrong code with defaulted move ctor.

gcc/c-family/
* c-opts.c (c_common_post_options): Bump the current ABI version to
13.  Set warn_abi_version and flag_abi_compat_version to the current
version rather than 0.  Fix defaulting flag_abi_compat_version from
warn_abi_version.
gcc/cp/
* class.c (classtype_has_non_deleted_move_ctor): New.
* tree.c (maybe_warn_parm_abi, type_has_nontrivial_copy_init):
Handle v12 breakage.

From-SVN: r261562
gcc/c-family/ChangeLog
gcc/c-family/c-opts.c
gcc/common.opt
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/tree.c
gcc/doc/invoke.texi
gcc/testsuite/g++.dg/abi/invisiref2a.C [new file with mode: 0644]
gcc/testsuite/g++.dg/abi/macro0.C