[clang] [Clang][Sema] Reject array prvalue operands (PR #140702)

via cfe-commits cfe-commits at lists.llvm.org
Wed May 21 04:11:14 PDT 2025


languagelawyer wrote:

> it is CWG2548; that's what made it clear that array-to-pointer decay does not happen here

CWG2548 is closed as NAD, with no changes to the wording. The fact that array-to-pointer decay does not happen has always been clear

> despite that being inconsistent with the rest of the language

I'd say CWG hallucinated inconsistence, to me there is none

https://github.com/llvm/llvm-project/pull/140702


More information about the cfe-commits mailing list