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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
   Target Milestone|---                         |8.0
         Resolution|---                         |FIXED

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed in GCC 8.0. C++20 added support for this feature and GCC enables it as an
extension for C++11+ with a warning:
<source>:1:19: warning: default member initializers for bit-fields only
available with -std=c++2a or -std=gnu++2a
 class C { bool x:1=false; };
                   ^
ASM generation compiler returned: 0
<source>:1:19: warning: default member initializers for bit-fields only
available with -std=c++2a or -std=gnu++2a
 class C { bool x:1=false; };
                   ^

Reply via email to