diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-03-11 23:27:41 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-03-11 23:27:41 +0000 |
commit | d078bd2e02bd4e6661fe06645d98280a2a5a3e8c (patch) | |
tree | 4759ec112e4d91b5d35e84366e28d429fb522c9d /test/SemaTemplate/nested-name-spec-template.cpp | |
parent | 6f4596cfb70ec706dd2da38db1be3663c214ff7a (diff) |
Don't ask if a depenendent CXXRecordDecl has any dependent bases
unless we already know that it has a definition. Fixes
PR9449/<rdar://problem/9115785>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127512 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/nested-name-spec-template.cpp')
-rw-r--r-- | test/SemaTemplate/nested-name-spec-template.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/SemaTemplate/nested-name-spec-template.cpp b/test/SemaTemplate/nested-name-spec-template.cpp index 7730ee395f..635687d4f6 100644 --- a/test/SemaTemplate/nested-name-spec-template.cpp +++ b/test/SemaTemplate/nested-name-spec-template.cpp @@ -127,3 +127,16 @@ namespace PR9226 { Y<X, int> yxi; // expected-note{{in instantiation of template class 'PR9226::Y<PR9226::X, int>' requested here}} } + +namespace PR9449 { + template <typename T> + struct s; // expected-note{{template is declared here}} + + template <typename T> + void f() { + int s<T>::template n<T>::* f; // expected-error{{implicit instantiation of undefined template 'PR9449::s<int>'}} \ + // expected-error{{following the 'template' keyword}} + } + + template void f<int>(); // expected-note{{in instantiation of}} +} |