[cfe-commits] r142862 - /cfe/trunk/lib/Sema/SemaLookup.cpp

Douglas Gregor dgregor at apple.com
Mon Oct 24 15:24:50 PDT 2011


Author: dgregor
Date: Mon Oct 24 17:24:50 2011
New Revision: 142862

URL: http://llvm.org/viewvc/llvm-project?rev=142862&view=rev
Log:
When we perform a lookup for a dependent name that is a member of an
unknown specialization, treat this the same way as if the name were
not found in the current instantiation. No actual functionality
change, since apparently nothing depends on this.

Modified:
    cfe/trunk/lib/Sema/SemaLookup.cpp

Modified: cfe/trunk/lib/Sema/SemaLookup.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaLookup.cpp?rev=142862&r1=142861&r2=142862&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaLookup.cpp (original)
+++ cfe/trunk/lib/Sema/SemaLookup.cpp Mon Oct 24 17:24:50 2011
@@ -1561,13 +1561,14 @@
         return false;
 
       R.setContextRange(SS->getRange());
-
       return LookupQualifiedName(R, DC);
     }
 
     // We could not resolve the scope specified to a specific declaration
     // context, which means that SS refers to an unknown specialization.
     // Name lookup can't find anything in this case.
+    R.setNotFoundInCurrentInstantiation();
+    R.setContextRange(SS->getRange());
     return false;
   }
 





More information about the cfe-commits mailing list