1 // PR c++/81026
2 
3 namespace std {
4   template<class> struct extent;
5 }
6 using namespace std;
7 
8 template <class T>
9 struct S {
fS10   void f() { T().template extent<42>(); }
11 };
12