summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/dependent-template-recover.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaTemplate/dependent-template-recover.cpp')
-rw-r--r--clang/test/SemaTemplate/dependent-template-recover.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/dependent-template-recover.cpp b/clang/test/SemaTemplate/dependent-template-recover.cpp
index 632a11b2e06..e91ffb52539 100644
--- a/clang/test/SemaTemplate/dependent-template-recover.cpp
+++ b/clang/test/SemaTemplate/dependent-template-recover.cpp
@@ -8,6 +8,9 @@ struct X {
t->operator+<U const, 1>(); // expected-error{{use 'template' keyword to treat 'operator +' as a dependent template name}}
t->f1<int const, 2>(); // expected-error{{use 'template' keyword to treat 'f1' as a dependent template name}}
+ T::getAs<U>(); // expected-error{{use 'template' keyword to treat 'getAs' as a dependent template name}}
+ t->T::getAs<U>(); // expected-error{{use 'template' keyword to treat 'getAs' as a dependent template name}}
+
// FIXME: We can't recover from these yet
(*t).f2<N>(); // expected-error{{expected expression}}
(*t).f2<0>(); // expected-error{{expected expression}}
OpenPOWER on IntegriCloud