[LLVMbugs] [Bug 24323] New: Namespace-name and namespace-alias-name not referring to the same entity

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 30 16:19:46 PDT 2015


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

            Bug ID: 24323
           Summary: Namespace-name and namespace-alias-name not referring
                    to the same entity
           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 N;
  namespace N = N;
  int main() {}

Command line:

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

Clang incorrectly rejects the program. It is well-formed.

Seems like clang does not realise that the non-alias namespace name and the
alias namespace name 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/d9051640/attachment.html>


More information about the llvm-bugs mailing list