Fix for PR 16367, display the name of a function in a diagnostic instead of
showing "(null)".
llvm-svn: 184377
diff --git a/clang/test/Parser/cxx-class-template-specialization.cpp b/clang/test/Parser/cxx-class-template-specialization.cpp
new file mode 100644
index 0000000..f94a859
--- /dev/null
+++ b/clang/test/Parser/cxx-class-template-specialization.cpp
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+
+struct A {
+ template<typename T>
+ void f();
+};
+class A::f<int>;
+// expected-error@-1 {{identifier followed by '<' indicates a class template specialization but 'f' refers to a function template}}