[Bug c++/65132] New: diagnostics: missing: bitfield member cannot have an in-class initializer
jan.kratochvil at redhat dot com
gcc-bugzilla@gcc.gnu.org
Fri Feb 20 09:14:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65132
Bug ID: 65132
Summary: diagnostics: missing: bitfield member cannot have an
in-class initializer
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: jan.kratochvil at redhat dot com
class C { bool x:1=false; };
g++ (GCC) 5.0.0 20150219 (experimental):
field.C:1:20: error: an assignment cannot appear in a constant-expression
clang-3.5.0-6.fc21.x86_64:
field.C:1:19: error: bitfield member cannot have an in-class initializer
I had no idea what GCC errors on until I asked clang.
More information about the Gcc-bugs
mailing list