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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Generally LGTM, but I feel like the changes aren't c++2a specific (except for uninitialized variables in constexpr functions).
clang/lib/AST/ExprConstant.cpp | ||
---|---|---|
4447 |
Comment Actions
Address comments from Timm
- Moved test to C++14,20,23 test file from C++20-only one
- NFC stylistic changes