https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92732
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Dec 20 17:34:14 2019 New Revision: 279665 URL: https://gcc.gnu.org/viewcvs?rev=279665&root=gcc&view=rev Log: Backported from mainline 2019-12-03 Jakub Jelinek <ja...@redhat.com> 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: branches/gcc-9-branch/gcc/testsuite/g++.dg/cpp2a/bitfield4.C Modified: branches/gcc-9-branch/gcc/cp/ChangeLog branches/gcc-9-branch/gcc/cp/typeck2.c branches/gcc-9-branch/gcc/testsuite/ChangeLog branches/gcc-9-branch/gcc/testsuite/g++.dg/cpp2a/bitfield3.C