https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92869
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Dec 11 18:44:02 2019 New Revision: 279241 URL: https://gcc.gnu.org/viewcvs?rev=279241&root=gcc&view=rev Log: PR c++/92869 * class.c (finish_struct): For C++17 and earlier, check type_has_user_provided_or_explicit_constructor rather than TYPE_HAS_USER_CONSTRUCTOR whether to set CLASSTYPE_NON_AGGREGATE. * g++.dg/cpp0x/aggr3.C: New test. Added: trunk/gcc/testsuite/g++.dg/cpp0x/aggr3.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/class.c trunk/gcc/testsuite/ChangeLog