https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66254
Bug ID: 66254 Summary: Member function shadowing enum classes Product: gcc Version: 5.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vini.ipsmaker at gmail dot com Target Milestone: --- Created attachment 35600 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35600&action=edit The test code to trigger the error The attached code compiles fine on clang, but fails with GCC. C++11 mode is required to compile the code.