[LLVMbugs] [Bug 8136] New: clang doesn't detect invalid redeclarations after a using directive brings in something with the same name
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Sep 13 13:38:51 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=8136
Summary: clang doesn't detect invalid redeclarations after a
using directive brings in something with the same name
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rjmccall at apple.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
This should obviously not compile (because of the conflict between the
namespace and the class):
namespace A {
template <class T> class A;
}
using namespace A;
class A {};
I assume that the redecl lookup is finding the template, which is then dropped
because it's in the wrong scope.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list