================ @@ -7639,6 +7639,8 @@ def warn_param_mismatched_alignment : Warning< def err_objc_object_assignment : Error< "cannot assign to class object (%0 invalid)">; +def err_typecheck_array_prvalue_operand : Error< + "array prvalue is not permitted">; ---------------- AaronBallman wrote:
The goal of diagnostics is to help the user see what's wrong with their code. Users don't generally think in terms of value categories unless they've been spending a lot of time reading the standard (which the vast majority of users have never seen, let alone read). So the important part is telling the user that the operands are invalid (and pointing to the invalid operand); the type information helps the user to determine which operand is the likely issue. https://github.com/llvm/llvm-project/pull/140702 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits