https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54319
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|empty class causes error |[9/10/11/12 Regression] |while non-empty does not |empty class causes error | |while non-empty does not Target Milestone|--- |9.5 --- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #5) > Note even the following X causes an error: > struct X {int :1;}; > > Maybe that will give a hint of where the bug is located. Which makes this a regression even :). The above with just one anonymous bitfield field is accepted until GCC 6. But this should give even more of what is the underlaying bug.