https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92732

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-8 branch has been updated by Jakub Jelinek
<ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:41e5eec55cb64b54c717d9625bcee1aac1def569

commit r8-9991-g41e5eec55cb64b54c717d9625bcee1aac1def569
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Fri Feb 14 12:58:46 2020 +0100

    backport: re PR c++/92732 (Bit-field of scoped enumeration type cannot be
initialized)

        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.

Reply via email to