From 1806c2795bdccce6ad20d448b90836ed43e70124 Mon Sep 17 00:00:00 2001 From: John McCall Date: Fri, 11 Sep 2009 07:25:08 +0000 Subject: 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 --- clang/test/SemaTemplate/temp_class_spec.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'clang/test/SemaTemplate/temp_class_spec.cpp') 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 -struct is_pointer { +struct is_pointer { // expected-error{{partial ordering}} static const bool value = false; }; @@ -16,8 +16,7 @@ struct is_pointer { int array0[is_pointer::value? -1 : 1]; int array1[is_pointer::value? 1 : -1]; -int array2[is_pointer::value? 1 : -1]; // expected-error{{partial ordering}} \ -// expected-error{{negative}} +int array2[is_pointer::value? 1 : -1]; // expected-error{{negative}} template struct is_lvalue_reference { -- cgit v1.2.3