llvm-project/clang/test/SemaOpenCLCXX
Ole Strohm b102e6880a [OpenCL] Fix overloading resolution of addrspace constructors
This fixes the prioritization of address spaces when choosing a
constructor, stopping them from being considered equally good,
which made the construction of types that could be constructed
by more than one of the constructors.

It does this by preferring the most specific address space,
which is decided by seeing if one of the address spaces is
a superset of the other, and preferring the other.

Fixes: PR50329

Reviewed By: Anastasia

Differential Revision: https://reviews.llvm.org/D102850
2021-06-11 11:12:33 +01:00
..
address-space-castoperators.clcpp [OpenCL] Added distinct file extension for C++ for OpenCL. 2021-03-24 13:07:04 +00:00
address-space-cond.clcpp [OpenCL] Added distinct file extension for C++ for OpenCL. 2021-03-24 13:07:04 +00:00
address-space-deduction.clcpp [OpenCL] Added distinct file extension for C++ for OpenCL. 2021-03-24 13:07:04 +00:00
address-space-lambda.clcpp [clang] [C++2b] [P1102] Accept lambdas without parameter list (). 2021-03-24 14:42:27 +01:00
address-space-of-this-class-scope.clcpp [OpenCL] Added distinct file extension for C++ for OpenCL. 2021-03-24 13:07:04 +00:00
address-space-of-this.clcpp [OpenCL] Added distinct file extension for C++ for OpenCL. 2021-03-24 13:07:04 +00:00
address-space-references.clcpp [OpenCL] Added distinct file extension for C++ for OpenCL. 2021-03-24 13:07:04 +00:00
address-space-templates.clcpp [OpenCL] Fix AST check in address-space-templates test 2021-03-26 14:24:30 +00:00
address_space_overloading.clcpp [OpenCL] Added distinct file extension for C++ for OpenCL. 2021-03-24 13:07:04 +00:00
addrspace-auto.clcpp [OpenCL] Added distinct file extension for C++ for OpenCL. 2021-03-24 13:07:04 +00:00
addrspace-constructors.clcpp [OpenCL] Fix overloading resolution of addrspace constructors 2021-06-11 11:12:33 +01:00
addrspace_cast.clcpp [OpenCL] Added distinct file extension for C++ for OpenCL. 2021-03-24 13:07:04 +00:00
addrspace_cast_ast_dump.clcpp [OpenCL] Added distinct file extension for C++ for OpenCL. 2021-03-24 13:07:04 +00:00
half.clcpp [OpenCL] Fix ICE with invalid use of half 2021-06-01 13:43:07 +01:00
invalid-kernel.clcpp [OpenCL] Add clang extension for non-portable kernel parameters. 2021-05-05 14:58:23 +01:00
members.clcpp [OpenCL] Added distinct file extension for C++ for OpenCL. 2021-03-24 13:07:04 +00:00
method-overload-address-space.clcpp [OpenCL] Added distinct file extension for C++ for OpenCL. 2021-03-24 13:07:04 +00:00
newdelete.clcpp [OpenCL] Added distinct file extension for C++ for OpenCL. 2021-03-24 13:07:04 +00:00
private-access-specifier.cpp [PR41247] Fixed parsing of private keyword in C++. 2019-03-28 11:47:14 +00:00
references.clcpp [OpenCL] Added distinct file extension for C++ for OpenCL. 2021-03-24 13:07:04 +00:00
reinterpret-cast.clcpp [OpenCL] Fix reinterpret_cast of vectors 2021-05-17 12:42:21 +01:00
restricted.clcpp [OpenCL] Added distinct file extension for C++ for OpenCL. 2021-03-24 13:07:04 +00:00
template-astype.cl [OpenCL] Support template parameters for as_type 2021-03-22 11:59:05 +00:00
template-opencl-types.clcpp [C++4OpenCL] Add diagnostics for OpenCL types in templates. 2021-04-27 13:04:25 +01:00