diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-11-04 22:49:18 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-11-04 22:49:18 +0000 |
commit | 43d8863df9d02f81acdf5f73fbc288f285bf442e (patch) | |
tree | 499765eca2c79dd82d6ebdb046a82a3630c4f562 /test/SemaTemplate/member-template-access-expr.cpp | |
parent | 655fe9b0d93471e02d6510058355389bbac154f8 (diff) |
When starting a C++ member access expression, make sure to compute the
type of the object even when it is dependent. Specifically, this makes
sure that we get the right type for "this->", which is important when
performing name lookup into this scope to determine whether an
identifier or operator-function-id is a template name.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86060 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/member-template-access-expr.cpp')
-rw-r--r-- | test/SemaTemplate/member-template-access-expr.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/SemaTemplate/member-template-access-expr.cpp b/test/SemaTemplate/member-template-access-expr.cpp index 0238cd53c5..567c0d63b0 100644 --- a/test/SemaTemplate/member-template-access-expr.cpp +++ b/test/SemaTemplate/member-template-access-expr.cpp @@ -93,3 +93,13 @@ void f(X4<X3<int> > x4i) { X2<sizeof(int)> x2; x4i.f<X2<sizeof(int)> >(x2); } + +template<typename T> +struct X5 { + template<typename U> + void f(); + + void g() { + this->f<T*>(); + } +}; |