[Bug c++/100084] New: using enum lookup isn't type-only

barry.revzin at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Apr 14 18:03:43 GMT 2021


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.


More information about the Gcc-bugs mailing list