Eli Friedman 9025ec2ee5 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
2009-12-21 01:42:38 +00:00

9 lines
202 B
C++

// 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 {};
}