http://llvm.org/bugs/show_bug.cgi?id=17575

            Bug ID: 17575
           Summary: No-op using declaration causes function redeclarations
                    to be rejected
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

Clang will reject these at the point of the function definition with
"declaration conflicts with target of using declaration already in scope":

void bar();
namespace foo { using ::bar; }
using foo::bar;
void bar() {}

and this:

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

The latter using declarations (if I am reading the standard correctly) are
no-ops and should not cause the definitions to be rejected.

-- 
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