specified as a qualified name.
llvm-svn: 168479
// member name lookup, and it's sufficient to check that we have the naming
// class as a base class.
Classes.clear();
- Classes.insert(R.getNamingClass());
+ Classes.insert(R.getNamingClass()->getCanonicalDecl());
}
// If we can prove that the current context is unrelated to all the
template<> struct A<char>::E : A<char> {};
// 'cannot bind to a temporary'
char &s = A<char>::F().g(); // expected-note {{in instantiation of}}
+
+ struct X;
+ struct X { void f(); };
+ struct X;
+ template<typename T> struct Y : X {
+ void g() {
+ X::f();
+ }
+ };
}