https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92732
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue Dec 3 08:21:29 2019 New Revision: 278923 URL: https://gcc.gnu.org/viewcvs?rev=278923&root=gcc&view=rev Log: PR c++/92732 * typeck2.c (digest_nsdmi_init): For bitfields, use DECL_BIT_FIELD_TYPE instead of TREE_TYPE. * g++.dg/cpp2a/bitfield3.C: Don't expect narrowing conversion warnings. * g++.dg/cpp2a/bitfield4.C: New test. Added: trunk/gcc/testsuite/g++.dg/cpp2a/bitfield4.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/typeck2.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/cpp2a/bitfield3.C