enum OverloadFailureKind
Declared at: clang/include/clang/Sema/Overload.h:736
Enumerators
Name | Value | Comment |
---|---|---|
ovl_fail_too_many_arguments | 0 | |
ovl_fail_too_few_arguments | 1 | |
ovl_fail_bad_conversion | 2 | |
ovl_fail_bad_deduction | 3 | |
ovl_fail_trivial_conversion | 4 | This conversion candidate was not considered because it duplicates the work of a trivial or derived-to-base conversion. |
ovl_fail_illegal_constructor | 5 | This 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_conversion | 6 | This conversion candidate is not viable because its result type is not implicitly convertible to the desired type. |
ovl_fail_final_conversion_not_exact | 7 | This conversion function template specialization candidate is not viable because the final conversion was not an exact match. |
ovl_fail_bad_target | 8 | (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_if | 9 | This candidate function was not viable because an enable_if attribute disabled it. |
ovl_fail_explicit | 10 | This candidate constructor or conversion function is explicit but the context doesn't permit explicit functions. |
ovl_fail_addr_not_available | 11 | This candidate was not viable because its address could not be taken. |
ovl_fail_inhctor_slice | 12 | This inherited constructor is not viable because it would slice the argument. |
ovl_non_default_multiversion_function | 13 | This candidate was not viable because it is a non-default multiversioned function. |
ovl_fail_object_addrspace_mismatch | 14 | This constructor/conversion candidate fail due to an address space mismatch between the object being constructed and the overload candidate. |
ovl_fail_constraints_not_satisfied | 15 | This candidate was not viable because its associated constraints were not satisfied. |
ovl_fail_module_mismatched | 16 | This candidate was not viable because it has internal linkage and is from a different module unit than the use. |