[clang] [Clang][Sema] Reject array prvalue operands (PR #140702)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Wed May 21 04:01:51 PDT 2025
AaronBallman wrote:
> > This is related to CWG2548
>
> Kinda, but not really. It has never been necessary to create that (non-)issue. Or does someone really believe that it is a C++ defect that `IA{ 1, 2, 3 } - IA{ 1, 2, 3 }` is not allowed? So, it is just a bug since C++11
I think it is CWG2548; that's what made it clear that array-to-pointer decay does not happen here despite that being inconsistent with the rest of the language (https://github.com/cplusplus/papers/issues/1633)
https://github.com/llvm/llvm-project/pull/140702
More information about the cfe-commits
mailing list