PR45521: Preserve the value kind when performing a standard conversion
authorRichard Smith <richard@metafoo.co.uk>
Wed, 8 Jul 2020 01:25:57 +0000 (18:25 -0700)
committerRichard Smith <richard@metafoo.co.uk>
Wed, 8 Jul 2020 01:28:28 +0000 (18:28 -0700)
commit065fc1eafe7c6f67f8029bcd38e6864b3c429e35
tree130aa2b73131afe95dd500347e1967782582b24d
parent74145d584126da2ce7a836d9b2240d56442f3ea1
PR45521: Preserve the value kind when performing a standard conversion
sequence on a glvalue expression.

If the sequence is supposed to perform an lvalue-to-rvalue conversion,
then one will be specified as the first conversion in the sequence.
Otherwise, one should not be invented.
clang/lib/Sema/SemaExprCXX.cpp
clang/lib/Sema/SemaOverload.cpp
clang/test/SemaCXX/references.cpp