https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82357
Bug ID: 82357 Summary: [8 Regression] bogus error: cannot bind bitfield Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: trippels at gcc dot gnu.org Target Milestone: --- % < api.ii template <typename> struct A { A() { x |= 0; } int x : 8; }; % g++ -c api.ii api.ii: In constructor ‘A< <template-parameter-1-1> >::A()’: api.ii:2:14: error: cannot bind bitfield ‘((A< <template-parameter-1-1> >*)this)->A< <template-parameter-1-1> >::x’ to ‘int&’ A() { x |= 0; } ^