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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to