| 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
|---|---|
| 2 | // XFAIL: * |
| 3 | |
| 4 | template<typename T> struct Member0 { |
| 5 | void f(T t) { |
| 6 | t; |
| 7 | t.f; |
| 8 | t->f; |
| 9 | |
| 10 | T* tp; |
| 11 | tp.f; |
| 12 | tp->f; |
| 13 | |
| 14 | this->f; |
| 15 | this.f; // expected-error{{member reference base type 'struct Member0 *const' is not a structure or union}} |
| 16 | } |
| 17 | }; |
| 18 |