From 336e7743b8e2222d8557e2cf7c100c8f878df630 Mon Sep 17 00:00:00 2001 From: John McCall Date: Wed, 2 Dec 2009 19:59:55 +0000 Subject: 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 --- test/SemaCXX/qualified-id-lookup.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'test/SemaCXX/qualified-id-lookup.cpp') 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 struct is_class { + enum { value = 0 }; + }; + + template class ClassChecker { + bool isClass() { + return is_class::value; + } + }; + + template class ClassChecker; +} -- cgit v1.2.3-18-g5258