]> granicus.if.org Git - clang/commitdiff
Attempt to clarify a vexing-parse diagnostic.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 19 Dec 2012 03:15:32 +0000 (03:15 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 19 Dec 2012 03:15:32 +0000 (03:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170492 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticSemaKinds.td
test/SemaTemplate/temp_arg_nontype.cpp

index 950fc4bcb0458b818abd403c94dcc2356c9ab3d3..c49b875c6138eda0951d169691b73bb8dd3ecca8 100644 (file)
@@ -2631,7 +2631,7 @@ def err_template_arg_must_be_type_suggest : Error<
 def err_template_arg_must_be_expr : Error<
   "template argument for non-type template parameter must be an expression">;
 def err_template_arg_nontype_ambig : Error<
-  "template argument for non-type template parameter is treated as type %0">;
+  "template argument for non-type template parameter is treated as function type %0">;
 def err_template_arg_must_be_template : Error<
   "template argument for template template parameter must be a class template%select{| or type alias template}0">;
 def ext_template_arg_local_type : ExtWarn<
index 747ddcc4618e67edaff1eaab3a212a1377efb37a..31947d2df5b7096b921412b49ebfe9b9813e33fa 100644 (file)
@@ -3,7 +3,7 @@ template<int N> struct A; // expected-note 5{{template parameter is declared her
 
 A<0> *a0;
 
-A<int()> *a1; // expected-error{{template argument for non-type template parameter is treated as type 'int ()'}}
+A<int()> *a1; // expected-error{{template argument for non-type template parameter is treated as function type 'int ()'}}
 
 A<int> *a2; // expected-error{{template argument for non-type template parameter must be an expression}}