https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92215
Bug ID: 92215 Summary: flawed diagnostic for bit-field with non-integral type Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- struct S { int *foo : 3; }; r.C:2:8: error: function definition does not declare parameters 2 | int *foo : 3; | ^~~ Huh? We should say something like r.C:2:8: error: bit-field 'foo' has non-integral type 'int *'