[Bug c/89265] New: Incorrect bitfield type in -Wconversion warnings
pskocik at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sat Feb 9 11:46:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89265
Bug ID: 89265
Summary: Incorrect bitfield type in -Wconversion warnings
Product: gcc
Version: 7.4.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: pskocik at gmail dot com
Target Milestone: ---
void f() { struct{ unsigned x:1; }x = { (unsigned){0} }; }
warns about a conversion to `unsigned char:1`. It should say `unsigned int:1`.
More information about the Gcc-bugs
mailing list