diff options
| author | David Blaikie <dblaikie@gmail.com> | 2011-10-25 18:46:41 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2011-10-25 18:46:41 +0000 |
| commit | dd58d4ca8fbc11724b85b85e1cf35151ae0451d2 (patch) | |
| tree | 79fd2f55fb95a02b09cfacf92bd8a75afea454d0 /clang/test | |
| parent | c70ed46dda73cd80b30e832103c14f8c68e85e0b (diff) | |
| download | bcm5719-llvm-dd58d4ca8fbc11724b85b85e1cf35151ae0451d2.tar.gz bcm5719-llvm-dd58d4ca8fbc11724b85b85e1cf35151ae0451d2.zip | |
Handle redundant 'typename' on base class specifications.
llvm-svn: 142937
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/CXX/class.derived/p1.cpp | 3 |
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}} } |

