summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/nested-template.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-08-26 00:04:55 +0000
committerDouglas Gregor <dgregor@apple.com>2009-08-26 00:04:55 +0000
commit053f691d5e2a94ee8cf9aeaa337475549690cd09 (patch)
treec4a5d951aaa02b14256015630dd709d1ec4b9b1c /clang/test/SemaTemplate/nested-template.cpp
parent7e3f0e4e0df371cb56732f5bd6995e34a4cf3089 (diff)
downloadbcm5719-llvm-053f691d5e2a94ee8cf9aeaa337475549690cd09.tar.gz
bcm5719-llvm-053f691d5e2a94ee8cf9aeaa337475549690cd09.zip
Improve diagnostics and recovery when the nested-name-specifier of a
qualified name does not actually refer into a class/class template/class template partial specialization. Improve printing of nested-name-specifiers to eliminate redudant qualifiers. Also, make it possible to output a nested-name-specifier through a DiagnosticBuilder, although there are relatively few places that will use this leeway. llvm-svn: 80056
Diffstat (limited to 'clang/test/SemaTemplate/nested-template.cpp')
-rw-r--r--clang/test/SemaTemplate/nested-template.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/nested-template.cpp b/clang/test/SemaTemplate/nested-template.cpp
index 3a7634f53ba..896eb723984 100644
--- a/clang/test/SemaTemplate/nested-template.cpp
+++ b/clang/test/SemaTemplate/nested-template.cpp
@@ -87,3 +87,7 @@ Y Outer<X>::Inner1<Y>::value2 = Y();
template<typename X>
template<typename Y>
Y Outer<X>::Inner1<Y>::ReallyInner::value3 = Y();
+
+template<typename X>
+template<typename Y>
+Y Outer<X>::Inner1<Y*>::ReallyInner::value4; // expected-error{{Outer<X>::Inner1<Y *>::ReallyInner::}}
OpenPOWER on IntegriCloud