[PATCH] D11490: [Concepts] Add diagnostic: non template declaration

Hubert Tong hubert.reinterpretcast at gmail.com
Fri Jul 24 12:07:01 PDT 2015


hubert.reinterpretcast added inline comments.

================
Comment at: include/clang/Basic/DiagnosticSemaKinds.td:1970
@@ -1969,1 +1969,3 @@
+def err_concept_decl_non_template : Error<
+  "concept can only be applied to a function or variable template definition">;
 def err_concept_decls_may_only_appear_in_namespace_scope : Error<
----------------
Using just "concept" here to refer to the specifier is a bit confusing. Perhaps:
"the concept specifier may only be applied to the definition of a function or variable template"



http://reviews.llvm.org/D11490







More information about the cfe-commits mailing list