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