Clean up the heart of the caching code and miss fewer edge cases.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133671 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaCXX/using-decl-assignment-cache.cpp b/test/SemaCXX/using-decl-assignment-cache.cpp
new file mode 100644
index 0000000..a3a50e5
--- /dev/null
+++ b/test/SemaCXX/using-decl-assignment-cache.cpp
@@ -0,0 +1,16 @@
+// RUN: %clang_cc1 -std=c++0x -fsyntax-only %s
+
+struct D;
+struct B {
+  D& operator = (const D&);
+};
+struct D : B {
+  using B::operator=;
+};
+struct F : D {
+};
+
+void H () {
+  F f;
+  f = f;
+}