[PATCH] D127593: [clang] Fix trivially copyable for copy constructor and copy assignment operator

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 13 07:37:37 PDT 2022


erichkeane added a comment.

In D127593#3576538 <https://reviews.llvm.org/D127593#3576538>, @royjacobson wrote:

> Hi Javier, thank you for submitting this patch!
>
> As far as I could tell, this patch implements the CWG2171 defect report from 2016: https://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#2171. That means that you'll have to add a test inside clang/test/CXX/drs/dr21xx.cpp to make sure it shows on the DRs status page.
>
> This change is also a large ABI break, which means it has to be considered carefully. I think the best approach here would be to revert to the previous behavior when the -fclang-abi-compat flag is used for clang <= 14, but I'm not sure about this. I would like the approval of someone with more ABI experience here.
>
> The code itself and the tests look good! If you'll need help with the changes I mentioned please let me know.

Yep, this needs to add a new ABI value to the -fclang-abi-compat stuff, so starting with LangOptions.h's ClangABI enum, probably a Ver15 value.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D127593/new/

https://reviews.llvm.org/D127593



More information about the cfe-commits mailing list