Handle redundant 'typename' on base class specifications.
llvm-svn: 142937
diff --git a/clang/test/CXX/class.derived/p1.cpp b/clang/test/CXX/class.derived/p1.cpp
index d819ea2..dc5cb2b 100644
--- a/clang/test/CXX/class.derived/p1.cpp
+++ b/clang/test/CXX/class.derived/p1.cpp
@@ -34,4 +34,7 @@
struct Derived4 : :: decltype(Base()) { }; // expected-error {{unexpected namespace scope prior to decltype}}
struct Derived5 : PR11216:: decltype(Base()) { }; // expected-error {{unexpected namespace scope prior to decltype}}
+
+ template<typename T>
+ struct Derived6 : typename T::foo { }; // expected-error {{'typename' is redundant; base classes are implicitly types}}
}