[all-commits] [llvm/llvm-project] 615d81: [clang][ExprConstant] Improve error message of com...
Takuya Shimizu via All-commits
all-commits at lists.llvm.org
Fri Aug 25 00:08:46 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 615d812696ee8827d6d78ad106d6022ff2778137
https://github.com/llvm/llvm-project/commit/615d812696ee8827d6d78ad106d6022ff2778137
Author: Takuya Shimizu <shimizu2486 at gmail.com>
Date: 2023-08-25 (Fri, 25 Aug 2023)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/AST/ExprConstant.cpp
M clang/test/SemaCXX/constant-expression-cxx14.cpp
Log Message:
-----------
[clang][ExprConstant] Improve error message of compound assignment against uninitialized object
BEFORE this patch, compound assignment operator against uninitialized object such as uninit += 1 was diagnosed as subexpression not valid
This patch clarifies the reason for the error by saying that uninit is an uninitialized object.
Fixes https://github.com/llvm/llvm-project/issues/51536
Reviewed By: shafik, tbaeder
Differential Revision: https://reviews.llvm.org/D157855
More information about the All-commits
mailing list