1 // PR c++/69753
2 // { dg-do compile { target c++11 } }
3 
4 class A {
5 public:
6   template <typename> void As();
7   static A *FromWebContents();
8   A *FromWebContents2();
9 };
10 template <typename T> class B : A {
FromWebContents()11   void FromWebContents() {
12     auto guest = A::FromWebContents();
13     guest ? guest->As<T>() : nullptr;
14     auto guest2 = A::FromWebContents2();
15     guest2 ? guest2->As<T>() : nullptr;
16   }
17 };
18