Anders Carlsson | 4ef2770 | 2009-05-16 20:31:20 +0000 | [diff] [blame] | 1 | template<typename T> struct Member0 { |
2 | void f(T t) { | ||||
3 | t; | ||||
4 | t.f; | ||||
5 | t->f; | ||||
6 | |||||
7 | T* tp; | ||||
8 | tp.f; | ||||
9 | tp->f; | ||||
10 | |||||
11 | this->f; | ||||
12 | this.f; // expected-error{{member reference base type 'struct Member0 *const' is not a structure or union}} | ||||
13 | } | ||||
14 | }; |