[clang] [Clang] Check constraints for an explicit instantiation of a member function (PR #104438)

via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 16 11:57:05 PDT 2024


================
@@ -5663,6 +5663,8 @@ def err_explicit_instantiation_internal_linkage : Error<
 def err_explicit_instantiation_not_known : Error<
   "explicit instantiation of %0 does not refer to a function template, "
   "variable template, member function, member class, or static data member">;
+def err_explicit_instantiation_no_candidate : Error<
+    "no candidate for explicit instantiation of %0">;
----------------
cor3ntin wrote:

This would be a fairly significant change, are you opposed to do that as a separate PR?
`err_explicit_instantiation_not_known` basically never explain what the issue is (no notes)

https://github.com/llvm/llvm-project/pull/104438


More information about the cfe-commits mailing list