https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71586
Bug ID: 71586 Summary: type confusion when bitfields are accessed from templates Product: gcc Version: 5.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gnubugzi...@martin-kaesberger.de Target Milestone: --- Created attachment 38727 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38727&action=edit testcase When enums are used as bitfields of a struct, the type of a bitfield does not get resolved when accessed from a template, except the template member is explicitly accessed with 'this->'.