Simplify the handling of non-dependent friend class template
specializations such as:

  friend class std::vector<int>;

by using the same code path as explicit specializations, customized to
reference an existing ClassTemplateSpecializationDecl (or build a new
"undeclared" one).



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82875 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaTemplate/friend.cpp b/test/SemaTemplate/friend.cpp
index cd74cb1..2729952 100644
--- a/test/SemaTemplate/friend.cpp
+++ b/test/SemaTemplate/friend.cpp
@@ -8,3 +8,7 @@
 void f() {
   A<int>::B b;
 }
+
+struct C0 {
+  friend struct A<int>;
+};