https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121068
--- Comment #21 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:70f33ad677e6350a724b56d4cb766480ed8367fc commit r16-3333-g70f33ad677e6350a724b56d4cb766480ed8367fc Author: Jason Merrill <ja...@redhat.com> Date: Thu Aug 21 13:52:25 2025 -0400 c++: constexpr clobber of const [PR121068] Since r16-3022, 20_util/variant/102912.cc was failing in C++20 and above due to wrong errors about destruction modifying a const object; destruction is OK. PR c++/121068 gcc/cp/ChangeLog: * constexpr.cc (cxx_eval_store_expression): Allow clobber of a const object. gcc/testsuite/ChangeLog: * g++.dg/cpp2a/constexpr-dtor18.C: New test.