[LLVMbugs] [Bug 18269] New: using-declaration for a name declared previously via a using-declaration introducing a non-typedef class/enumeration name
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Dec 17 14:23:57 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=18269
Bug ID: 18269
Summary: using-declaration for a name declared previously via a
using-declaration introducing a non-typedef
class/enumeration name
Product: clang
Version: trunk
Hardware: Other
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: hstong at ca.ibm.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
It seems Clang has a bad check for whether the first using-declaration in the
case below introduces a class name or enumeration name that is not a typedef
name.
SOURCE:
int A;
namespace Type { struct A; }
void f5() {
using Type::A;
using ::A;
}
OUTPUT:
cltybad.cc:6:11: error: target of using declaration conflicts with declaration
already in scope
using ::A;
^
cltybad.cc:1:5: note: target of using declaration
int A;
^
cltybad.cc:5:15: note: conflicting declaration
using Type::A;
^
1 error generated.
VERSION INFORMATION:
clang version 3.5
Target: powerpc64-unknown-linux-gnu
Thread model: posix
--
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/20131217/453145b6/attachment.html>
More information about the llvm-bugs
mailing list