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: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs