https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100084
Bug ID: 100084 Summary: using enum lookup isn't type-only Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: barry.revzin at gmail dot com Target Milestone: --- >From Stack Avarflaw (https://stackoverflow.com/q/67096550/2069064): namespace A { enum A {}; }; using namespace A; using enum A; gcc trunk rejects this lookup as ambiguous, between the namespace A and the enum A. But our lookup in this context should be type-only, so the namespace A should not a candidate.