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

            Bug ID: 38144
           Summary: Incorrectly accepts double declarations
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangb...@nondot.org
          Reporter: zhong...@pku.org.cn
                CC: dgre...@apple.com, llvm-bugs@lists.llvm.org

The code is as follows:

namespace N
{
 int i;
}

void
f ()
{
 using N::i;
 using N::i;
}

clang++ does not complain about the double declarations. (By the way, g++
recognizes the doubly
declared items.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to