[PATCH] D49085: [Sema] Emit a diagnostic for an invalid dependent function template specialization

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 19 11:18:25 PDT 2018


rjmccall added inline comments.


================
Comment at: clang/include/clang/Basic/DiagnosticSemaKinds.td:4111
+  "candidate template ignored: %select{template is not a function template"
+  "|is not a member of the enclosing namespace}0">;
 
----------------
Your first explanation has a subject, but the second doesn't.  And I think it would be nice to suggest adding explicit scope qualification in the second case.

I assume non-templates have previously been filtered out?


https://reviews.llvm.org/D49085





More information about the cfe-commits mailing list