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 | 5ecbb1bc24f1945c97661308bdab8b47ea267017 (patch) | |
| tree | fe77f6950072f8a20d355636fd207102598e1dc5 /clang/test | |
| parent | b7c6e8f5752d727f725406d2611964fe2dd86fae (diff) | |
| download | bcm5719-llvm-5ecbb1bc24f1945c97661308bdab8b47ea267017.tar.gz bcm5719-llvm-5ecbb1bc24f1945c97661308bdab8b47ea267017.zip | |
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>.
llvm-svn: 127512
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/SemaTemplate/nested-name-spec-template.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/nested-name-spec-template.cpp b/clang/test/SemaTemplate/nested-name-spec-template.cpp index 7730ee395f4..635687d4f6b 100644 --- a/clang/test/SemaTemplate/nested-name-spec-template.cpp +++ b/clang/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}} +} |

