enum OverloadFailureKind

Declared at: clang/include/clang/Sema/Overload.h:736

Enumerators

NameValueComment
ovl_fail_too_many_arguments0
ovl_fail_too_few_arguments1
ovl_fail_bad_conversion2
ovl_fail_bad_deduction3
ovl_fail_trivial_conversion4This conversion candidate was not considered because it duplicates the work of a trivial or derived-to-base conversion.
ovl_fail_illegal_constructor5This conversion candidate was not considered because it is an illegal instantiation of a constructor temploid: it is callable with one argument, we only have one argument, and its first parameter type is exactly the type of the class.Defining such a constructor directly is illegal, and template-argument deduction is supposed to ignore such instantiations, but we can still get one with the right kind of implicit instantiation.
ovl_fail_bad_final_conversion6This conversion candidate is not viable because its result type is not implicitly convertible to the desired type.
ovl_fail_final_conversion_not_exact7This conversion function template specialization candidate is not viable because the final conversion was not an exact match.
ovl_fail_bad_target8(CUDA) This candidate was not viable because the callee was not accessible from the caller's target (i.e. host->device, global->host, device->host).
ovl_fail_enable_if9This candidate function was not viable because an enable_if attribute disabled it.
ovl_fail_explicit10This candidate constructor or conversion function is explicit but the context doesn't permit explicit functions.
ovl_fail_addr_not_available11This candidate was not viable because its address could not be taken.
ovl_fail_inhctor_slice12This inherited constructor is not viable because it would slice the argument.
ovl_non_default_multiversion_function13This candidate was not viable because it is a non-default multiversioned function.
ovl_fail_object_addrspace_mismatch14This constructor/conversion candidate fail due to an address space mismatch between the object being constructed and the overload candidate.
ovl_fail_constraints_not_satisfied15This candidate was not viable because its associated constraints were not satisfied.
ovl_fail_module_mismatched16This candidate was not viable because it has internal linkage and is from a different module unit than the use.