https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113844

            Bug ID: 113844
           Summary: inline namespace lookup ambiguity for using
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ldalessandro at gmail dot com
  Target Milestone: ---

namespace a {
      inline namespace b {
          inline int b{};
      }
  }

  using namespace a::b; // gcc & msvc & edg reject, clang accepts

I think that by https://eel.is/c++draft/basic.lookup.udir#1 this using should
be okay, but gcc seems to be considering the a::b::b integer as a candidate,
which feels wrong. Is there somewhere else that makes this ambiguous?

Reply via email to