Fix lookup bug

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67964 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaDeclCXX.cpp b/lib/Sema/SemaDeclCXX.cpp
index f58125d..300e7c4 100644
--- a/lib/Sema/SemaDeclCXX.cpp
+++ b/lib/Sema/SemaDeclCXX.cpp
@@ -1685,7 +1685,7 @@
                                              IdentifierInfo *Ident) {
   
   // Check if we have a previous declaration with the same name.
-  if (NamedDecl *PrevDecl = LookupName(S, Alias, LookupOrdinaryName)) {
+  if (NamedDecl *PrevDecl = LookupName(S, Alias, LookupOrdinaryName, true)) {
     // FIXME: If this is a namespace alias decl, and it points to the same 
     // namespace, we shouldn't warn.
     unsigned DiagID = isa<NamespaceDecl>(PrevDecl) ? diag::err_redefinition :