https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86094
--- Comment #10 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Wed Jun 13 19:39:53 2018 New Revision: 261563 URL: https://gcc.gnu.org/viewcvs?rev=261563&root=gcc&view=rev Log: 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. Added: branches/gcc-8-branch/gcc/testsuite/g++.dg/abi/invisiref2a.C Modified: branches/gcc-8-branch/gcc/c-family/ChangeLog branches/gcc-8-branch/gcc/c-family/c-opts.c branches/gcc-8-branch/gcc/common.opt branches/gcc-8-branch/gcc/cp/ChangeLog branches/gcc-8-branch/gcc/cp/class.c branches/gcc-8-branch/gcc/cp/cp-tree.h branches/gcc-8-branch/gcc/cp/tree.c branches/gcc-8-branch/gcc/doc/invoke.texi branches/gcc-8-branch/gcc/testsuite/g++.dg/abi/macro0.C