Unresolved lookups can have using declarations that refer to

unresolved using declarations. Fixes PR14768 / <rdar://problem/13030296>.

llvm-svn: 173883
This commit is contained in:
Douglas Gregor 2013-01-30 02:10:08 +00:00
parent 1bd90ff6cc
commit 29d18a8b93
2 changed files with 10 additions and 1 deletions

View 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;
}

View 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() ();
};
}