]> granicus.if.org Git - clang/commitdiff
Fix grammatical error in diagnostic.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 21 Aug 2014 20:43:52 +0000 (20:43 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 21 Aug 2014 20:43:52 +0000 (20:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@216221 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticSemaKinds.td
test/SemaTemplate/deduction.cpp
test/SemaTemplate/derived.cpp

index 5d427aada7b8d6a2e61195cff9c635a75fa628e4..52381b933464dbb9be4a0d990b3c9c326eeb79d8 100644 (file)
@@ -2782,7 +2782,7 @@ def note_ovl_candidate_instantiation_depth : Note<
     "candidate template ignored: substitution exceeded maximum template "
     "instantiation depth">;
 def note_ovl_candidate_underqualified : Note<
-    "candidate template ignored: can't deduce a type for %0 which would "
+    "candidate template ignored: can't deduce a type for %0 that would "
     "make %2 equal %1">;
 def note_ovl_candidate_substitution_failure : Note<
     "candidate template ignored: substitution failure%0%1">;
index aecb5ee7c8b3dca59ca546140c7b2e2a0d247a41..59162b74cc6dbb67a37dca7d87e3753d299164fc 100644 (file)
@@ -107,7 +107,7 @@ namespace PR7463 {
 }
 
 namespace test0 {
-  template <class T> void make(const T *(*fn)()); // expected-note {{candidate template ignored: can't deduce a type for 'T' which would make 'const T' equal 'char'}}
+  template <class T> void make(const T *(*fn)()); // expected-note {{candidate template ignored: can't deduce a type for 'T' that would make 'const T' equal 'char'}}
   char *char_maker();
   void test() {
     make(char_maker); // expected-error {{no matching function for call to 'make'}}
index ce20cea7dcc59a9b40347c4e315de5d4ebf6fde0..cbd004cf6195ca89801a18e12da2bb8eed68b190 100644 (file)
@@ -4,8 +4,8 @@
 template<typename T> class vector2 {};
 template<typename T> class vector : vector2<T> {};
 
-template<typename T> void Foo2(vector2<const T*> V) {}  // expected-note{{candidate template ignored: can't deduce a type for 'T' which would make 'const T' equal 'int'}}
-template<typename T> void Foo(vector<const T*> V) {} // expected-note {{candidate template ignored: can't deduce a type for 'T' which would make 'const T' equal 'int'}}
+template<typename T> void Foo2(vector2<const T*> V) {}  // expected-note{{candidate template ignored: can't deduce a type for 'T' that would make 'const T' equal 'int'}}
+template<typename T> void Foo(vector<const T*> V) {} // expected-note {{candidate template ignored: can't deduce a type for 'T' that would make 'const T' equal 'int'}}
 
 void test() {
   Foo2(vector2<int*>());  // expected-error{{no matching function for call to 'Foo2'}}