diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-12-21 01:42:38 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-12-21 01:42:38 +0000 |
commit | 9025ec2ee55bf8098f928c2f55e2316c861fcb55 (patch) | |
tree | c89cfea6fad81efc66999f90f44c13e535fa3f5b /clang/test/CXX/class.derived/p2.cpp | |
parent | a26001bf96b52e24d4f1020f75d849f45ca513d9 (diff) | |
download | bcm5719-llvm-9025ec2ee55bf8098f928c2f55e2316c861fcb55.tar.gz bcm5719-llvm-9025ec2ee55bf8098f928c2f55e2316c861fcb55.zip |
Fix for PR5840: fix the kind of name lookup used for classes in
Sema::getTypeName.
"LookupNestedNameSpecifierName" isn't quite the right kind of lookup, though;
it doesn't ignore namespaces. Someone more familiar with the lookup code
should fix this properly.
llvm-svn: 91809
Diffstat (limited to 'clang/test/CXX/class.derived/p2.cpp')
-rw-r--r-- | clang/test/CXX/class.derived/p2.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CXX/class.derived/p2.cpp b/clang/test/CXX/class.derived/p2.cpp new file mode 100644 index 00000000000..7ef53d36ab7 --- /dev/null +++ b/clang/test/CXX/class.derived/p2.cpp @@ -0,0 +1,8 @@ +// RUN: %clang_cc1 %s -fsyntax-only -verify + +// "During the lookup for a base class name, non-type names are ignored" +namespace PR5840 { + struct Base {}; + int Base = 10; + struct Derived : Base {}; +} |