diff options
author | Kaelyn Uhrain <rikka@google.com> | 2011-09-07 20:25:59 +0000 |
---|---|---|
committer | Kaelyn Uhrain <rikka@google.com> | 2011-09-07 20:25:59 +0000 |
commit | 82340e8cbd353ae4ddb545f61ba9816c8d69ba8e (patch) | |
tree | 112880aabce0ecafe2b6d7ad2802a42d269fd683 /test/SemaCXX/using-decl-templates.cpp | |
parent | 3f5af5d7934847db4a76d034ba3ccd7cb2655cda (diff) |
Fix Sema::CorrectTypo to ignore found but unresolved symbols
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139252 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/using-decl-templates.cpp')
-rw-r--r-- | test/SemaCXX/using-decl-templates.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/SemaCXX/using-decl-templates.cpp b/test/SemaCXX/using-decl-templates.cpp index 7b4da9d50d..2f8abca02d 100644 --- a/test/SemaCXX/using-decl-templates.cpp +++ b/test/SemaCXX/using-decl-templates.cpp @@ -63,3 +63,20 @@ template <class T> struct Bar : public Foo<T>, Baz { }; template int Bar<int>::foo(); } + +// PR10883 +namespace PR10883 { + template <typename T> + class Base { + public: + typedef long Container; + }; + + template <typename T> + class Derived : public Base<T> { + public: + using Base<T>::Container; + + void foo(const Container& current); // expected-error {{unknown type name 'Container'}} + }; +} |