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

Xidorn Quan <quanxunzhen at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |quanxunzhen at gmail dot com

--- Comment #5 from Xidorn Quan <quanxunzhen at gmail dot com> ---
It seems G++ always throw that warning for enum class as bitfield, even when
the enum class is actually empty:
> enum class K {};
> struct S {
>   K v : 5;
> };

G++ would give:
> test.cpp:3:9: warning: 'S::v' is too small to hold all values of 'enum class 
> K'
>    K v : 5;

Reply via email to