summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/class.derived/p1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CXX/class.derived/p1.cpp')
-rw-r--r--clang/test/CXX/class.derived/p1.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/CXX/class.derived/p1.cpp b/clang/test/CXX/class.derived/p1.cpp
index d819ea23894..dc5cb2b8c2a 100644
--- a/clang/test/CXX/class.derived/p1.cpp
+++ b/clang/test/CXX/class.derived/p1.cpp
@@ -34,4 +34,7 @@ namespace PR11216 {
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}}
}
OpenPOWER on IntegriCloud