summaryrefslogtreecommitdiffstats
path: root/libclc
diff options
context:
space:
mode:
authorRichard Smith <richard@metafoo.co.uk>2020-01-09 15:31:56 -0800
committerRichard Smith <richard@metafoo.co.uk>2020-01-09 18:24:06 -0800
commitf041e9ad706aee7987c5299427c33424fcabbd0d (patch)
treed156216fbbbc28d09f997c4cfea552a5cfee2939 /libclc
parent3727ca313783e23696caeae53c688409555ab0fc (diff)
downloadbcm5719-llvm-f041e9ad706aee7987c5299427c33424fcabbd0d.tar.gz
bcm5719-llvm-f041e9ad706aee7987c5299427c33424fcabbd0d.zip
CWG2352: Allow qualification conversions during reference binding.
The language wording change forgot to update overload resolution to rank implicit conversion sequences based on qualification conversions in reference bindings. The anticipated resolution for that oversight is implemented here -- we order candidates based on qualification conversion, not only on top-level cv-qualifiers, including ranking reference bindings against non-reference bindings if they differ in non-top-level qualification conversions. For OpenCL/C++, this allows reference binding between pointers with differing (nested) address spaces. This makes the behavior of reference binding consistent with that of implicit pointer conversions, as is the purpose of this change, but that pre-existing behavior for pointer conversions is itself probably not correct. In any case, it's now consistently the same behavior and implemented in only one place. This reinstates commit de21704ba96fa80d3e9402f12c6505917a3885f4, reverted in commit d8018233d1ea4234de68d5b4593abd773db79484, with workarounds for some overload resolution ordering problems introduced by CWG2352.
Diffstat (limited to 'libclc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud