https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125066
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Jason Merrill <[email protected]>: https://gcc.gnu.org/g:513f02c7c565d6e874a6d57db30df87e7f3e2f37 commit r17-2373-g513f02c7c565d6e874a6d57db30df87e7f3e2f37 Author: Yuxuan Chen <[email protected]> Date: Mon Jul 13 21:34:25 2026 +0000 c++: Avoid duplicate trivial_abi cleanup in cdtor clones [PR125066] Constructor and destructor clones already have a genericized copy of the original body, including parameter cleanups. Do not add another front-end CLEANUP_STMT while processing a clone. gcc/cp/ChangeLog: PR c++/125066 * decl.cc (store_parm_decls): Do not register trivial_abi parameter cleanups for cloned functions. gcc/testsuite/ChangeLog: PR c++/125066 * g++.dg/cpp0x/attr-trivial_abi10.C: New test. Signed-off-by: Yuxuan Chen <[email protected]>
