]> granicus.if.org Git - clang/commitdiff
Unresolved lookups can have using declarations that refer to
authorDouglas Gregor <dgregor@apple.com>
Wed, 30 Jan 2013 02:10:08 +0000 (02:10 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 30 Jan 2013 02:10:08 +0000 (02:10 +0000)
unresolved using declarations. Fixes PR14768 / <rdar://problem/13030296>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173883 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Sema/Lookup.h
test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p10.cpp

index 68b36e7d3cab166e490689f26ac037591d4a8604..3e7e3a16ebc8d67245cea93745a835904e0cf581 100644 (file)
@@ -625,7 +625,7 @@ private:
 
   bool sanityCheckUnresolved() const {
     for (iterator I = begin(), E = end(); I != E; ++I)
-      if (isa<UnresolvedUsingValueDecl>(*I))
+      if (isa<UnresolvedUsingValueDecl>((*I)->getUnderlyingDecl()))
         return true;
     return false;
   }
index ae40062fe14cd9c841e3a82affa48c247c9600d8..a38ff15525d23fe511dcc5ff8d9aeeff1d6f2137 100644 (file)
@@ -33,3 +33,12 @@ namespace test1 {
   }
 }
 
+// PR 14768
+namespace PR14768 {
+  template<typename eT> class Mat;
+  template<typename eT> class Col : public Mat<eT>   {
+    using Mat<eT>::operator();
+    using Col<eT>::operator();
+    void operator() ();
+  };
+}