diff options
author | Richard Smith <richard@metafoo.co.uk> | 2019-12-19 11:15:47 -0800 |
---|---|---|
committer | Richard Smith <richard@metafoo.co.uk> | 2019-12-19 18:37:55 -0800 |
commit | de21704ba96fa80d3e9402f12c6505917a3885f4 (patch) | |
tree | 4c6f76c59c3367f408c4ab4c881a28cb150859a3 /clang/lib/Sema/SemaCast.cpp | |
parent | a77a290a4dbb1db2de4cf48c0599f8e3a3c86c53 (diff) | |
download | bcm5719-llvm-de21704ba96fa80d3e9402f12c6505917a3885f4.tar.gz bcm5719-llvm-de21704ba96fa80d3e9402f12c6505917a3885f4.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.
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.
Diffstat (limited to 'clang/lib/Sema/SemaCast.cpp')
0 files changed, 0 insertions, 0 deletions