diff options
author | John McCall <rjmccall@apple.com> | 2009-12-02 19:59:55 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2009-12-02 19:59:55 +0000 |
commit | 336e7743b8e2222d8557e2cf7c100c8f878df630 (patch) | |
tree | 7f435d7b250f734a1b6d9a0ef8f244c2b35adcca /test/SemaCXX/qualified-id-lookup.cpp | |
parent | 639787c8e989d4c5381da01cff156abf888817c2 (diff) |
Recognize that EnumConstantDecls can be found by lookup and are not instance
members. Fixes PR5667.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90341 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/qualified-id-lookup.cpp')
-rw-r--r-- | test/SemaCXX/qualified-id-lookup.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/SemaCXX/qualified-id-lookup.cpp b/test/SemaCXX/qualified-id-lookup.cpp index 254a18de1f..5a11a0cd07 100644 --- a/test/SemaCXX/qualified-id-lookup.cpp +++ b/test/SemaCXX/qualified-id-lookup.cpp @@ -109,3 +109,18 @@ struct Undef { // expected-note{{definition of 'struct Undef' is not complete un int Undef::f() { return sizeof(Undef); } + +// PR clang/5667 +namespace test1 { + template <typename T> struct is_class { + enum { value = 0 }; + }; + + template <typename T> class ClassChecker { + bool isClass() { + return is_class<T>::value; + } + }; + + template class ClassChecker<int>; +} |