[PATCH] D78134: [Sema] Don't apply an lvalue-to-rvalue conversion to a discarded-value expression if it has an array type

Akira Hatanaka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 15 17:41:42 PDT 2020


ahatanak added a comment.

In D78134#1982291 <https://reviews.llvm.org/D78134#1982291>, @rsmith wrote:

> In D78134#1981866 <https://reviews.llvm.org/D78134#1981866>, @rsmith wrote:
>
> > I'm going to take this to CWG.
>
>
> So far, the direction the wind is blowing is that attempting to perform an lvalue-to-rvalue conversion on an array should be a no-op. (That's weirdly different from the behavior on a class, but so be it.)


Is this the final decision? Or should I wait until we know for sure that this is a no-op and doesn't cause an lvalue-to-rvalue conversion?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D78134/new/

https://reviews.llvm.org/D78134





More information about the cfe-commits mailing list