[llvm-bugs] [Bug 38144] New: Incorrectly accepts double declarations

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jul 11 19:37:08 PDT 2018


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: unassignedclangbugs at nondot.org
          Reporter: zhonghao at pku.org.cn
                CC: dgregor at apple.com, llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180712/e48b6ed9/attachment.html>


More information about the llvm-bugs mailing list