[LLVMbugs] [Bug 17575] New: No-op using declaration causes function redeclarations to be rejected
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Oct 14 11:50:04 PDT 2013
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: unassignedclangbugs at nondot.org
Reporter: peter at pcc.me.uk
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131014/2768ee77/attachment.html>
More information about the llvm-bugs
mailing list