diff options
author | John McCall <rjmccall@apple.com> | 2009-09-11 07:25:08 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2009-09-11 07:25:08 +0000 |
commit | 1806c2795bdccce6ad20d448b90836ed43e70124 (patch) | |
tree | 5efb41e55edce14d0dea22b3bd7ddc8b8f1fb5a6 /clang/test/SemaTemplate/temp_class_spec.cpp | |
parent | 19a9f42f20b10865385877bdb42619020dc95270 (diff) | |
download | bcm5719-llvm-1806c2795bdccce6ad20d448b90836ed43e70124.tar.gz bcm5719-llvm-1806c2795bdccce6ad20d448b90836ed43e70124.zip |
Track a class template specialization's point of instantiation separately
from its location. Initialize appropriately.
When implicitly creating a declaration of a class template specialization
after encountering the first reference to it, use the pattern class's
location instead of the location of the first reference.
llvm-svn: 81515
Diffstat (limited to 'clang/test/SemaTemplate/temp_class_spec.cpp')
-rw-r--r-- | clang/test/SemaTemplate/temp_class_spec.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/test/SemaTemplate/temp_class_spec.cpp b/clang/test/SemaTemplate/temp_class_spec.cpp index e625009c46a..cf206d162fb 100644 --- a/clang/test/SemaTemplate/temp_class_spec.cpp +++ b/clang/test/SemaTemplate/temp_class_spec.cpp @@ -1,6 +1,6 @@ // RUN: clang-cc -fsyntax-only -verify %s template<typename T> -struct is_pointer { +struct is_pointer { // expected-error{{partial ordering}} static const bool value = false; }; @@ -16,8 +16,7 @@ struct is_pointer<const T*> { int array0[is_pointer<int>::value? -1 : 1]; int array1[is_pointer<int*>::value? 1 : -1]; -int array2[is_pointer<const int*>::value? 1 : -1]; // expected-error{{partial ordering}} \ -// expected-error{{negative}} +int array2[is_pointer<const int*>::value? 1 : -1]; // expected-error{{negative}} template<typename T> struct is_lvalue_reference { |