blob: 6fab2f9d17b0175970f84943fa4a47854e85c241 [file] [log] [blame]
// PR c++/69753
// { dg-do compile { target c++11 } }
class A {
public:
template <typename> void As();
static A *FromWebContents();
A *FromWebContents2();
};
template <typename T> class B : A {
void FromWebContents() {
auto guest = this->A::FromWebContents();
guest ? guest->As<T>() : nullptr;
auto guest2 = this->A::FromWebContents2();
guest2 ? guest2->As<T>() : nullptr;
}
};