[LLVMbugs] [Bug 24324] New: Name lookup ambiguity between namespace and its alias

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 30 16:37:23 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24324

            Bug ID: 24324
           Summary: Name lookup ambiguity between namespace and its alias
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++14
          Assignee: unassignedclangbugs at nondot.org
          Reporter: anders.granlund.0 at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Test case:

  namespace P{ namespace X { static int i = 1; } }
  namespace Q { namespace X = P::X; }
  using namespace P;
  using namespace Q;
  int main() { X::i; }

Command line:

  clang++ prog.cc -std=c++14 -pedantic-errors

This results in name-lookup ambiguity errors when looking up X in main. This is
not a name-lookup ambiguity since the two names founds denotes the same entity.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150730/33a501fe/attachment.html>


More information about the llvm-bugs mailing list